You are viewing a plain text version of this content. The canonical link for it is here.
Posted to crimson-cvs@xml.apache.org by ed...@apache.org on 2001/03/08 21:51:53 UTC

cvs commit: xml-crimson/examples/DOMEcho DOMEcho.java

edwingo     01/03/08 12:51:52

  Modified:    examples/DOMEcho DOMEcho.java
  Log:
  Turn on namespaceAware since the default is false
  
  Revision  Changes    Path
  1.4       +5 -0      xml-crimson/examples/DOMEcho/DOMEcho.java
  
  Index: DOMEcho.java
  ===================================================================
  RCS file: /home/cvs/xml-crimson/examples/DOMEcho/DOMEcho.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DOMEcho.java	2001/01/18 21:50:33	1.3
  +++ DOMEcho.java	2001/03/08 20:51:49	1.4
  @@ -278,6 +278,11 @@
           DocumentBuilderFactory dbf =
               DocumentBuilderFactory.newInstance();
   
  +        // Set namespaceAware to true to get a DOM Level 2 tree with nodes
  +        // containing namesapce information.  This is necessary because the
  +        // default value from JAXP 1.0 was defined to be false.
  +        dbf.setNamespaceAware(true);
  +
           // Optional: set various configuration options
           dbf.setValidating(validation);
           dbf.setIgnoringComments(ignoreComments);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: crimson-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: crimson-cvs-help@xml.apache.org