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.TreeDTD; 27 import org.netbeans.tax.TreeDocumentRoot; 28 29 34 public class DTDParsingSupport extends ParsingSupport { 35 36 39 public TreeDocumentRoot parse(InputSource in) throws IOException , TreeException { 40 41 TreeStreamSource treeBuilder = new TreeStreamSource(TreeDTD.class, in, null); 42 TreeDTD tree = (TreeDTD)treeBuilder.getBuilder().buildDocument(); 43 return tree; 44 } 45 46 } 47 | Popular Tags |