Code example for DocumentBuilderFactory

Methods: setNamespaceAware

0
  private static final DocumentBuilderFactory docBuilderFactory_;
 
  /** initialize the DOM parser factory */ 
  static { 
    docBuilderFactory_ = DocumentBuilderFactory.newInstance();
    docBuilderFactory_.setNamespaceAware(true);
  } 
 
  /** the SAX parser factory */ 
  private static final SAXParserFactory saxParserFactory_;
 
  /** initialize the SAX parser factory */ 
  static { 
    saxParserFactory_ = SAXParserFactory.newInstance();
    saxParserFactory_.setNamespaceAware(true);
  } 
 
  /** the transformer factory */ 
  private static final TransformerFactory transformerFactory_;
 
  /** initialize the transformer factory */