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, resetpublic SafeXmlDocument()
public void load(InputStream inStream) throws XMLStreamException
inStream - The stream containing the XML document to load.XMLStreamExceptionpublic 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.IOExceptionSAXExceptionpublic void loadXml(String xml)
xml - String containing the XML document to load.public DOMImplementation getDOMImplementation()
getDOMImplementation in class DocumentBuilderpublic boolean isNamespaceAware()
isNamespaceAware in class DocumentBuilderpublic boolean isValidating()
isValidating in class DocumentBuilderpublic Document newDocument()
newDocument in class DocumentBuilderpublic Document parse(InputSource is) throws SAXException, IOException
parse in class DocumentBuilderSAXExceptionIOExceptionpublic void setEntityResolver(EntityResolver er)
setEntityResolver in class DocumentBuilderpublic void setErrorHandler(ErrorHandler eh)
setErrorHandler in class DocumentBuilderCopyright © 2012–2015 Microsoft. All rights reserved.