|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xerial.util.xml.dom.DOMUtil
public class DOMUtil
DOMを操作する際に役立つユーティリティ
| Method Summary | |
|---|---|
static String |
getText(Element element)
Gets the text data enclosed by the specified element. |
static String |
getTextContent(Element parentElement,
String tagName)
TagのElementから、特定の子ノードのtext contentを返す |
static HashMap<String,String> |
getTextContentMap(Element element)
|
static HashMap<String,String> |
getTextContentMap(InputStream xmlStream)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String getTextContent(Element parentElement,
String tagName)
parentElement - tagName -
public static String getText(Element element)
getText(Element) for the
wiki element gives " Hello World! Nice to meet you.".
The result removes ignorable white spaces between tags.Hello World! leo Nice to meet you.
element - the target element
public static HashMap<String,String> getTextContentMap(InputStream xmlStream)
throws XMLException,
IOException
XMLException
IOExceptionpublic static HashMap<String,String> getTextContentMap(Element element)
element - 探索を開始するElementノード
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
