public class SafeXmlDocument extends DocumentBuilder
Constructor and Description |
---|
SafeXmlDocument() |
Modifier and Type | Method and Description |
---|---|
DOMImplementation |
getDOMImplementation() |
boolean |
isNamespaceAware() |
boolean |
isValidating() |
void |
load(InputStream inStream)
Loads the XML document from the specified stream.
|
void |
load(Reader txtReader)
Loads the XML document from the specified TextReader.
|
void |
load(String filename)
Loads the XML document from the specified URL.
|
void |
load(XMLStreamReader reader)
Loads the XML document from the specified XMLReader.
|
void |
loadXml(String xml)
Loads the XML document from the specified string.
|
Document |
newDocument() |
Document |
parse(InputSource is) |
void |
setEntityResolver(EntityResolver er) |
void |
setErrorHandler(ErrorHandler eh) |
getSchema, isXIncludeAware, parse, parse, parse, parse, reset
public SafeXmlDocument()
public void load(InputStream inStream) throws XMLStreamException
inStream
- The stream containing the XML document to load.XMLStreamException
public void load(String filename)
filename
- URL for the file containing the XML document to load. The URL
can be either a local file or an HTTP URL (a Web address).public void load(Reader txtReader)
txtReader
- The TextReader used to feed the XML data into the document.public void load(XMLStreamReader reader) throws SAXException, IOException
reader
- The XMLReader used to feed the XML data into the document.IOException
SAXException
public void loadXml(String xml)
xml
- String containing the XML document to load.public DOMImplementation getDOMImplementation()
getDOMImplementation
in class DocumentBuilder
public boolean isNamespaceAware()
isNamespaceAware
in class DocumentBuilder
public boolean isValidating()
isValidating
in class DocumentBuilder
public Document newDocument()
newDocument
in class DocumentBuilder
public Document parse(InputSource is) throws SAXException, IOException
parse
in class DocumentBuilder
SAXException
IOException
public void setEntityResolver(EntityResolver er)
setEntityResolver
in class DocumentBuilder
public void setErrorHandler(ErrorHandler eh)
setErrorHandler
in class DocumentBuilder
Copyright © 2012–2015 Microsoft. All rights reserved.