org.apache.jasper.xmlparser
Class ParserUtils
java.lang.Object
org.apache.jasper.xmlparser.ParserUtils
public class ParserUtils
- extends Object
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:
- $Id: ParserUtils.java 978865 2010-07-24 13:03:11Z markt $
- Author:
- Craig R. McClanahan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
validating
public static boolean validating
ParserUtils
public ParserUtils()
parseXMLDocument
public TreeNode parseXMLDocument(String location,
InputSource is)
throws JasperException
- Parse the specified XML document, and return a
TreeNode
that corresponds to the root node of the document tree.
- Parameters:
location
- Location (eg URI) of the XML document being parsedis
- Input source containing the deployment descriptor
- Throws:
JasperException
- if an input/output error occurs
JasperException
- if a parsing error occurs
parseXMLDocument
public TreeNode parseXMLDocument(String uri,
InputStream is)
throws JasperException
- Parse the specified XML document, and return a
TreeNode
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 occurs
JasperException
- if a parsing error occurs
convert
protected TreeNode convert(TreeNode parent,
Node node)
- 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
Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.