Class ParserUtils
java.lang.Object
org.apache.sling.scripting.jsp.jasper.xmlparser.ParserUtils
XML parsing utilities for processing web application deployment
descriptor and tag library descriptor files. FIXME - make these
use a separate class loader for the parser to be used.
- Version:
- $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Die, 24 Okt 2006) $
- Author:
- Craig R. McClanahan
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TreeNode
Create and return a TreeNode that corresponds to the specified Node, including processing all of the attributes and children nodes.parseXMLDocument
(String uri, InputStream is) Parse the specified XML document, and return aTreeNode
that corresponds to the root node of the document tree.parseXMLDocument
(String uri, InputSource is) Parse the specified XML document, and return aTreeNode
that corresponds to the root node of the document tree.
-
Field Details
-
validating
public static boolean validating
-
-
Constructor Details
-
ParserUtils
public ParserUtils()
-
-
Method Details
-
parseXMLDocument
Parse the specified XML document, and return aTreeNode
that corresponds to the root node of the document tree.- Parameters:
uri
- URI of the XML document being parsedis
- Input source containing the deployment descriptor- Throws:
JasperException
- if an input/output error occursJasperException
- if a parsing error occurs
-
parseXMLDocument
Parse the specified XML document, and return aTreeNode
that corresponds to the root node of the document tree.- Parameters:
uri
- URI of the XML document being parsedis
- Input stream containing the deployment descriptor- Throws:
JasperException
- if an input/output error occursJasperException
- if a parsing error occurs
-
convert
Create and return a TreeNode that corresponds to the specified Node, including processing all of the attributes and children nodes.- Parameters:
parent
- The parent TreeNode (if any) for the new TreeNodenode
- The XML document Node to be converted
-