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