jlibs.xml.dom
Class DOMUtil
java.lang.Object
jlibs.xml.dom.DOMUtil
public class DOMUtil
- extends Object
- Author:
- Santhosh Kumar T
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMUtil
public DOMUtil()
newDocumentBuilder
public static DocumentBuilder newDocumentBuilder(boolean nsAware,
boolean validating)
throws ParserConfigurationException
- Throws:
ParserConfigurationException
newDocumentBuilder
public static DocumentBuilder newDocumentBuilder(boolean nsAware,
boolean validating,
boolean coalescing,
boolean ignoreComments)
throws ParserConfigurationException
- Throws:
ParserConfigurationException
isNamespaceDeclaration
public static boolean isNamespaceDeclaration(Attr attr)
findNamespaceDeclarationForPrefix
public static Attr findNamespaceDeclarationForPrefix(Node node,
String prefix)
findNamespaceDeclarationForURI
public static Attr findNamespaceDeclarationForURI(Node node,
String uri)
equals
public static boolean equals(Node node1,
Node node2)
toString
public static String toString(Node node)
serialize
public static void serialize(Node node,
PrintStream out)
toSAX
public static void toSAX(Node root,
SAXDelegate handler)
throws SAXException
- Throws:
SAXException
getPosition
public static int getPosition(Element elem)
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2015. All rights reserved.