public class XMLUtil extends Object
| Constructor and Description |
|---|
XMLUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
domToString(Document doc) |
static String |
domToString(DOMSource ds,
boolean omitXmlDeclaration) |
static Node |
findChildNode(Node parent,
String childName) |
static Component |
getComponent(Node node,
Session session) |
static String |
getNodeAttributeValue(Node node,
String attrib,
boolean enhance) |
static Map<String,String> |
mapAttributeNodes(NodeList nodes,
String nodeName,
String nodeKeyName,
String nodeValueName) |
static Map<String,String> |
mapAttributes(Node node) |
static Map<String,String> |
mapAttributes(Node node,
boolean keyToLowerCase) |
static Map<String,String> |
mapAttributes(Node node,
String[] requiredAttributes) |
static Document |
parseXML(InputStream in,
XMLFilterImpl handler) |
static String |
toString(Node node,
boolean omitXmlDeclaration) |
public static Document parseXML(InputStream in, XMLFilterImpl handler) throws Exception
Exceptionpublic static Component getComponent(Node node, Session session) throws OpenAS2Exception
OpenAS2Exceptionpublic static String getNodeAttributeValue(Node node, String attrib, boolean enhance) throws OpenAS2Exception
OpenAS2Exceptionpublic static Map<String,String> mapAttributeNodes(NodeList nodes, String nodeName, String nodeKeyName, String nodeValueName) throws OpenAS2Exception
OpenAS2Exceptionpublic static Map<String,String> mapAttributes(Node node, String[] requiredAttributes) throws OpenAS2Exception
OpenAS2Exceptionpublic static String toString(Node node, boolean omitXmlDeclaration) throws TransformerException
TransformerExceptionpublic static String domToString(Document doc) throws TransformerException
TransformerExceptionpublic static String domToString(DOMSource ds, boolean omitXmlDeclaration) throws TransformerException
TransformerExceptionCopyright © 2019. All rights reserved.