1 28 29 package com.caucho.xml.parsers; 30 31 import com.caucho.xml.QDOMImplementation; 32 import com.caucho.xml.Xml; 33 34 import org.w3c.dom.DOMImplementation ; 35 36 import javax.xml.parsers.DocumentBuilder ; 37 import javax.xml.parsers.DocumentBuilderFactory ; 38 39 42 public class XmlDocumentBuilderFactory extends DocumentBuilderFactory { 43 public XmlDocumentBuilderFactory() 44 { 45 } 46 47 50 public DocumentBuilder newDocumentBuilder() 51 { 52 return new XmlDocumentBuilder(); 53 } 54 55 public Object getAttribute(String key) 56 { 57 return null; 58 } 59 60 public void setAttribute(String key, Object value) 61 { 62 } 63 64 public boolean getFeature(String key) 65 { 66 return false; 67 } 68 69 public void setFeature(String key, boolean value) 70 { 71 } 72 73 public DOMImplementation getDOMImplementation() 74 { 75 return new QDOMImplementation(); 76 } 77 78 81 class XmlDocumentBuilder extends AbstractDocumentBuilder { 82 85 XmlDocumentBuilder() 86 { 87 _parser = new Xml(); 88 _parser.setConfig(XmlDocumentBuilderFactory.this); 89 } 90 } 91 } 92 | Popular Tags |