1 19 package org.netbeans.modules.xml.tax.parser; 20 21 import java.io.IOException ; 22 23 import org.xml.sax.InputSource ; 24 25 import org.netbeans.tax.TreeException; 26 import org.netbeans.tax.TreeDocument; 27 import org.netbeans.tax.TreeDocumentRoot; 28 29 import org.netbeans.modules.xml.tax.parser.ParsingSupport; 30 31 37 public class XMLParsingSupport extends ParsingSupport { 38 39 42 public TreeDocumentRoot parse(InputSource in) throws IOException , TreeException { 43 TreeStreamSource treeBuilder = new TreeStreamSource (TreeDocument.class, in, null); 46 return (TreeDocument)treeBuilder.getBuilder().buildDocument(); 47 48 } 49 } 50 | Popular Tags |