com.izforge.izpack.adaptator
Interface IXMLParser

All Known Implementing Classes:
XMLParser

public interface IXMLParser

Interface for the adaptator of the javax Xml parser

Author:
Anthonin Bonnefoy, David Duponchel

Method Summary
 IXMLElement parse(java.io.InputStream inputStream)
          Parse the given stream to a XML
 IXMLElement parse(java.io.InputStream inputStream, java.lang.String systemId)
          Parse the given stream to a XML and set the systemId to the inputSource.
 IXMLElement parse(java.lang.String inputString)
          Parse the given text as an xml
 IXMLElement parse(java.net.URL inputURL)
          Parse the resource at the url specified
 

Method Detail

parse

IXMLElement parse(java.io.InputStream inputStream)
Parse the given stream to a XML

Parameters:
inputStream - Stream to parse
Returns:
Root element of the parsed xml
Throws:
XMLException - if something went wrong.

parse

IXMLElement parse(java.io.InputStream inputStream,
                  java.lang.String systemId)
Parse the given stream to a XML and set the systemId to the inputSource. It is useful for the xinclude feature, as the path of the resolution depends on the systemId.

Parameters:
inputStream - Stran to parse
systemId - System id of the file parsed
Returns:
Root element of the parsed XML
Throws:
XMLException - if something went wrong.

parse

IXMLElement parse(java.lang.String inputString)
Parse the given text as an xml

Parameters:
inputString - Xml written in a string
Returns:
Root element of the parsed xml
Throws:
XMLException - if something went wrong.

parse

IXMLElement parse(java.net.URL inputURL)
Parse the resource at the url specified

Parameters:
inputURL - Url of the resource
Returns:
Root element of the parsed xml
Throws:
XMLException