Package com.itextpdf.styledxmlparser
Interface IXmlParser
-
- All Known Implementing Classes:
JsoupHtmlParser,JsoupXmlParser
public interface IXmlParserInterface for the XML parsing operations that accept XML and return a document node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IDocumentNodeparse(java.io.InputStream XmlStream, java.lang.String charset)Parses XML provided as anInputStreamand an encoding.IDocumentNodeparse(java.lang.String Xml)Parses XML provided as aString.
-
-
-
Method Detail
-
parse
IDocumentNode parse(java.io.InputStream XmlStream, java.lang.String charset) throws java.io.IOException
Parses XML provided as anInputStreamand an encoding.- Parameters:
XmlStream- the Xml streamcharset- the character set. Ifnullthen parser should detect encoding from stream.- Returns:
- a document node
- Throws:
java.io.IOException- Signals that an I/O exception has occurred.
-
parse
IDocumentNode parse(java.lang.String Xml)
Parses XML provided as aString.- Parameters:
Xml- the Xml string- Returns:
- a document node
-
-