You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2006/04/03 03:49:45 UTC

svn commit: r390940 - /xerces/java/trunk/docs/faq-sax.xml

Author: mrglavas
Date: Sun Apr  2 18:49:45 2006
New Revision: 390940

URL: http://svn.apache.org/viewcvs?rev=390940&view=rev
Log:
In SAX usage example encourage setting of namespace awareness.

Modified:
    xerces/java/trunk/docs/faq-sax.xml

Modified: xerces/java/trunk/docs/faq-sax.xml
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/docs/faq-sax.xml?rev=390940&r1=390939&r2=390940&view=diff
==============================================================================
--- xerces/java/trunk/docs/faq-sax.xml (original)
+++ xerces/java/trunk/docs/faq-sax.xml Sun Apr  2 18:49:45 2006
@@ -1,6 +1,6 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <!--
- * Copyright 2004,2005 The Apache Software Foundation.
+ * Copyright 2004-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -38,6 +38,7 @@
 String xmlFile = &quot;file:///&parserdir;/data/personal.xml&quot;; 
 try {
     SAXParserFactory factory = SAXParserFactory.newInstance();
+    factory.setNamespaceAware(true);
     SAXParser parser = factory.newSAXParser();
     DefaultHandler handler = /* custom handler class */;
     parser.parse(xmlFile, handler);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org