jlibs.xml.dom
Class DOMUtil

java.lang.Object
  extended by jlibs.xml.dom.DOMUtil

public class DOMUtil
extends Object

Author:
Santhosh Kumar T

Constructor Summary
DOMUtil()
           
 
Method Summary
static boolean equals(Node node1, Node node2)
           
static Attr findNamespaceDeclarationForPrefix(Node node, String prefix)
           
static Attr findNamespaceDeclarationForURI(Node node, String uri)
           
static int getPosition(Element elem)
           
static boolean isNamespaceDeclaration(Attr attr)
           
static void main(String[] args)
           
static DocumentBuilder newDocumentBuilder(boolean nsAware, boolean validating)
           
static DocumentBuilder newDocumentBuilder(boolean nsAware, boolean validating, boolean coalescing, boolean ignoreComments)
           
static void serialize(Node node, PrintStream out)
           
static void toSAX(Node root, SAXDelegate handler)
           
static String toString(Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMUtil

public DOMUtil()
Method Detail

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.