org.exolab.adaptx.xslt.dom

Class XPNReader

public class XPNReader extends Object

A Utility class to read an XPathNode, using the org.exolab.adaptx.xslt.dom package as the implementation of XPathNode.

Version: $Revision: 3926 $ $Date: 2003-10-01 04:51:09 -0400 (Wed, 01 Oct 2003) $

Author: Keith Visco

Constructor Summary
XPNReader(URILocation location)
Creates a new XPNReader for the given URILocation.
XPNReader(String url)
Creates a new XPNReader for the given URILocation.
Method Summary
XPathNoderead()
Reads an XML Document into an XPathNode from the given URILocation
voidsetSaveLocation(boolean saveLocation)
Sets whether or not to save location information.

Constructor Detail

XPNReader

public XPNReader(URILocation location)
Creates a new XPNReader for the given URILocation.

Parameters: location the URILocation to create this reader for.

XPNReader

public XPNReader(String url)
Creates a new XPNReader for the given URILocation.

Parameters: location the URILocation to create this reader for.

Method Detail

read

public XPathNode read()
Reads an XML Document into an XPathNode from the given URILocation

Returns: the XPathNode

setSaveLocation

public void setSaveLocation(boolean saveLocation)
Sets whether or not to save location information. Location information can only be saved if the Locator has been set by the SAX Parser.

Parameters: saveLocation a boolean that when true, indicates that location information should be saved if possible.