YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
org.seamless.xml.DOMParser< D extends DOM > Class Template Referenceabstract

Condensed API for parsing of XML into DOM with (optional) XML schema validation. More...

Inheritance diagram for org.seamless.xml.DOMParser< D extends DOM >:
Inheritance graph
Collaboration diagram for org.seamless.xml.DOMParser< D extends DOM >:
Collaboration graph

Classes

class  NodeVisitor
 

Public Member Functions

 DOMParser (Source[] schemaSources)
 
Schema getSchema ()
 
DocumentBuilderFactory createFactory (boolean validating) throws ParserException
 
Transformer createTransformer (String method, int indent, boolean standalone) throws ParserException
 
createDocument ()
 
parse (URL url) throws ParserException
 
parse (String string) throws ParserException
 
parse (File file) throws ParserException
 
parse (InputStream stream) throws ParserException
 
parse (URL url, boolean validate) throws ParserException
 
parse (String string, boolean validate) throws ParserException
 
parse (File file, boolean validate) throws ParserException
 
parse (InputStream stream, boolean validate) throws ParserException
 
parse (InputSource source, boolean validate) throws ParserException
 
void validate (URL url) throws ParserException
 
void validate (String string) throws ParserException
 
void validate (Document document) throws ParserException
 
void validate (DOM dom) throws ParserException
 
void validate (Source source) throws ParserException
 
XPathFactory createXPathFactory ()
 
XPath createXPath (NamespaceContext nsContext)
 
XPath createXPath (XPathFactory factory, NamespaceContext nsContext)
 
Object getXPathResult (DOM dom, XPath xpath, String expr, QName result)
 
Object getXPathResult (DOMElement element, XPath xpath, String expr, QName result)
 
Object getXPathResult (Node context, XPath xpath, String expr, QName result)
 
String print (DOM dom) throws ParserException
 
String print (DOM dom, int indent) throws ParserException
 
String print (DOM dom, boolean standalone) throws ParserException
 
String print (DOM dom, int indent, boolean standalone) throws ParserException
 
String print (Document document, int indent, boolean standalone) throws ParserException
 
String print (String string, int indent, boolean standalone) throws ParserException
 
String print (Source source, int indent, boolean standalone) throws ParserException
 
String printHTML (Document dom) throws ParserException
 
String printHTML (Document dom, int indent, boolean standalone, boolean doctype) throws ParserException
 
void removeIgnorableWSNodes (Element element)
 
boolean isIgnorableWSNode (Node node)
 
void warning (SAXParseException e) throws SAXException
 
void error (SAXParseException e) throws SAXException
 
void fatalError (SAXParseException e) throws SAXException
 
InputSource resolveEntity (String publicId, String systemId) throws SAXException, IOException
 

Static Public Member Functions

static String escape (String string)
 
static String escape (String string, boolean convertNewlines, boolean convertSpaces)
 
static String stripElements (String xml)
 
static void accept (Node node, NodeVisitor visitor)
 
static String wrap (String wrapperName, String fragment)
 
static String wrap (String wrapperName, String xmlns, String fragment)
 

Static Public Attributes

static final URL XML_SCHEMA_RESOURCE
 

Protected Member Functions

abstract D createDOM (Document document)
 
ParserException unwrapException (Exception ex)
 

Protected Attributes

Source[] schemaSources
 
Schema schema
 

Detailed Description

Condensed API for parsing of XML into DOM with (optional) XML schema validation.

Provides many XML utility features, like pretty printing, escaping, or node visitor.

NOTE: This class is not thread-safe because JAXP factories are not thread-safe!

Author
Christian Bauer

Member Data Documentation

◆ XML_SCHEMA_RESOURCE

final URL org.seamless.xml.DOMParser< D extends DOM >.XML_SCHEMA_RESOURCE
static
Initial value:
=
Thread.currentThread().getContextClassLoader().getResource("org/seamless/schemas/xml.xsd")

The documentation for this class was generated from the following file: