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
Exception
public static Component getComponent(Node node, Session session) throws OpenAS2Exception
OpenAS2Exception
public static String getNodeAttributeValue(Node node, String attrib, boolean enhance) throws OpenAS2Exception
OpenAS2Exception
public static Map<String,String> mapAttributeNodes(NodeList nodes, String nodeName, String nodeKeyName, String nodeValueName) throws OpenAS2Exception
OpenAS2Exception
public static Map<String,String> mapAttributes(Node node, String[] requiredAttributes) throws OpenAS2Exception
OpenAS2Exception
public static String toString(Node node, boolean omitXmlDeclaration) throws TransformerException
TransformerException
public static String domToString(Document doc) throws TransformerException
TransformerException
public static String domToString(DOMSource ds, boolean omitXmlDeclaration) throws TransformerException
TransformerException
Copyright © 2019. All rights reserved.