|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.identityconnectors.common.XmlUtil
public class XmlUtil
Field Summary | |
---|---|
static char |
DOUBLE_QUOTE
|
static char |
NO_DELIM
|
static char |
SINGLE_QUOTE
|
Method Summary | |
---|---|
static void |
escape(StringBuilder b,
String s,
char delim)
Escapes the given string and appends to the given buffer |
static Element |
findImmediateChildElement(Node node,
String name)
Find an immediate child of the given name |
static String |
getAttribute(Element e,
String name)
Return the value of an attribute on an element. |
static String |
getContent(Element e)
Return the content of the given element. |
static Element |
getFirstChildElement(Node node)
Returns the First child element or null if none found |
static Element |
getNextElement(Node node)
Get the next right sibling that is an element. |
static Document |
parseString(String xml)
Parses a string without validation and returns the Document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char NO_DELIM
public static final char DOUBLE_QUOTE
public static final char SINGLE_QUOTE
Method Detail |
---|
public static Document parseString(String xml) throws IOException, SAXException, ParserConfigurationException
IOException
SAXException
ParserConfigurationException
public static String getAttribute(Element e, String name)
public static Element findImmediateChildElement(Node node, String name)
public static Element getFirstChildElement(Node node)
node
- The node. May be null.
public static Element getNextElement(Node node)
public static String getContent(Element e)
public static void escape(StringBuilder b, String s, char delim)
b
- The buffers
- The script to be escaped. May be null.delim
- May be SINGLE_QUOTE
, DOUBLE_QUOTE
, or NO_DELIM
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |