Class Parser

java.lang.Object
de.hybris.bootstrap.xml.Parser
Direct Known Subclasses:
ConfigurationParser, HybrisTypeSystemParser

public class Parser extends Object
The xml parser class. Using it simply requires to provide a root TagListener and a {link org.xml.sax.InputSource}.

Example:

        Media m = ...
        Parser p = new Parser();
        try
    {
                p.parse(
                        new InputSource( m.getDataFromStream() ),
        new MyRootTagListener()
        );
    }
    catch( ParseAbortException e )
    {
        // do some error handling
    }