org.apache.jasper.xmlparser
public class ParserUtils extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
validating
Deprecated.
Unused. Will be removed in Tomcat 7.
Use
ParserUtils(boolean,boolean) instead. |
Constructor and Description |
---|
ParserUtils()
Deprecated.
Unused. Will be removed in Tomcat 7.
Use
ParserUtils(boolean,boolean) instead. |
ParserUtils(boolean useValidation,
boolean blockExternal) |
Modifier and Type | Method and Description |
---|---|
protected TreeNode |
convert(TreeNode parent,
org.w3c.dom.Node node)
Create and return a TreeNode that corresponds to the specified Node,
including processing all of the attributes and children nodes.
|
TreeNode |
parseXMLDocument(java.lang.String location,
org.xml.sax.InputSource is)
Parse the specified XML document, and return a
TreeNode
that corresponds to the root node of the document tree. |
TreeNode |
parseXMLDocument(java.lang.String uri,
java.io.InputStream is)
Parse the specified XML document, and return a
TreeNode
that corresponds to the root node of the document tree. |
static void |
setEntityResolver(org.xml.sax.EntityResolver er)
Set the EntityResolver.
|
@Deprecated public static boolean validating
ParserUtils(boolean,boolean)
instead.@Deprecated public ParserUtils()
ParserUtils(boolean,boolean)
instead.public ParserUtils(boolean useValidation, boolean blockExternal)
public TreeNode parseXMLDocument(java.lang.String location, org.xml.sax.InputSource is) throws JasperException
TreeNode
that corresponds to the root node of the document tree.location
- Location (eg URI) of the XML document being parsedis
- Input source containing the deployment descriptorJasperException
- if an input/output error occursJasperException
- if a parsing error occurspublic TreeNode parseXMLDocument(java.lang.String uri, java.io.InputStream is) throws JasperException
TreeNode
that corresponds to the root node of the document tree.uri
- URI of the XML document being parsedis
- Input stream containing the deployment descriptorJasperException
- if an input/output error occursJasperException
- if a parsing error occurspublic static void setEntityResolver(org.xml.sax.EntityResolver er)
er
- EntityResolver to use.protected TreeNode convert(TreeNode parent, org.w3c.dom.Node node)
parent
- The parent TreeNode (if any) for the new TreeNodenode
- The XML document Node to be convertedCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.