public class XhtmlParser extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
XhtmlParser.NSMap |
static class |
XhtmlParser.ParserSecurityPolicy |
class |
XhtmlParser.QName |
| Constructor and Description |
|---|
XhtmlParser() |
| Modifier and Type | Method and Description |
|---|---|
XhtmlParser.ParserSecurityPolicy |
getPolicy() |
boolean |
isMustBeWellFormed() |
boolean |
isTrimWhitespace() |
boolean |
isValidatorMode() |
XhtmlDocument |
parse(InputStream input,
String entryName) |
XhtmlDocument |
parse(String source,
String entryName) |
XhtmlNode |
parseFragment(InputStream input) |
XhtmlNode |
parseFragment(String source) |
XhtmlNode |
parseHtmlNode(Element node) |
XhtmlNode |
parseHtmlNode(Element node,
String defaultNS) |
XhtmlNode |
parseHtmlNode(XMLEventReader xpp) |
void |
setMustBeWellFormed(boolean mustBeWellFormed) |
void |
setPolicy(XhtmlParser.ParserSecurityPolicy policy) |
void |
setTrimWhitespace(boolean trimWhitespace) |
XhtmlParser |
setValidatorMode(boolean validatorMode) |
public static final String XHTML_NS
public XhtmlParser()
public XhtmlParser.ParserSecurityPolicy getPolicy()
public boolean isMustBeWellFormed()
public boolean isTrimWhitespace()
public boolean isValidatorMode()
public XhtmlDocument parse(InputStream input, String entryName) throws FHIRFormatError, IOException
FHIRFormatErrorIOExceptionpublic XhtmlDocument parse(String source, String entryName) throws FHIRFormatError, IOException
FHIRFormatErrorIOExceptionpublic XhtmlNode parseFragment(InputStream input) throws IOException, FHIRException
IOExceptionFHIRExceptionpublic XhtmlNode parseFragment(String source) throws IOException, FHIRException
IOExceptionFHIRExceptionpublic XhtmlNode parseHtmlNode(Element node) throws FHIRFormatError
FHIRFormatErrorpublic XhtmlNode parseHtmlNode(Element node, String defaultNS) throws FHIRFormatError
FHIRFormatErrorpublic XhtmlNode parseHtmlNode(XMLEventReader xpp) throws IOException, FHIRFormatError, XMLStreamException
public void setMustBeWellFormed(boolean mustBeWellFormed)
public void setPolicy(XhtmlParser.ParserSecurityPolicy policy)
public void setTrimWhitespace(boolean trimWhitespace)
public XhtmlParser setValidatorMode(boolean validatorMode)
Copyright © 2014–2017 University Health Network. All rights reserved.