Package de.pdark.decentxml

Examples of de.pdark.decentxml.XMLParser


    public static Document parse(final String xml, final String originDetails) throws IOException {
        return parse (new XMLStringSource (xml), originDetails);  
    }
   
    public static Document parse(final XMLSource xmlSource, final String originDetails) throws IOException {
        XMLParser parser = new XMLParser () {
            @Override
            protected XMLTokenizer createTokenizer(XMLSource source) {
                XMLTokenizer tolerantTokenizerIgnoringEntities = new TolerantXMLTokenizer(source, originDetails);
                tolerantTokenizerIgnoringEntities.setTreatEntitiesAsText (this.isTreatEntitiesAsText());
                return tolerantTokenizerIgnoringEntities;
            }
        };
        return parser.parse (xmlSource);  
    }
View Full Code Here


  private static GenericP2Artifact parseFeature(InputStream in)
      throws IOException
  {
    // no closing of input stream required - our caller will close the jar
    // at the end
    final Feature f = new Feature(new XMLParser().parse(new XMLIOSource(in)));
    return new GenericP2Artifact(f.getId(), f.getVersion(), P2ArtifactType.FEATURE);
  }
View Full Code Here

TOP

Related Classes of de.pdark.decentxml.XMLParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.