You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2002/06/17 17:32:33 UTC
cvs commit: xml-xerces/c/doc faq-parse.xml program-others.xml schema.xml
tng 2002/06/17 08:32:33
Modified: c/doc faq-parse.xml program-others.xml schema.xml
Log:
Name Xerces features as XMLUni::fgXercesXXXX instead of XMLUni::fgSAX2XercesXXXX so that they can be shared with DOM parser.
Revision Changes Path
1.49 +1 -1 xml-xerces/c/doc/faq-parse.xml
Index: faq-parse.xml
===================================================================
RCS file: /home/cvs/xml-xerces/c/doc/faq-parse.xml,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- faq-parse.xml 13 Jun 2002 18:10:34 -0000 1.48
+++ faq-parse.xml 17 Jun 2002 15:32:33 -0000 1.49
@@ -700,7 +700,7 @@
<p>To ignore the DTD, with &XercesCName; &XercesCVersion; or up, you can call
<code>setLoadExternalDTD(false)</code> (or
- <code>setFeature(XMLUni::fgSAX2XercesLoadExternalDTD, false)</code>
+ <code>setFeature(XMLUni::fgXercesLoadExternalDTD, false)</code>
to disable the loading of external DTD. The parser will then ignore
any external DTD completely if the validationScheme is set to Val_Never.
</p>
1.2 +1 -1 xml-xerces/c/doc/program-others.xml
Index: program-others.xml
===================================================================
RCS file: /home/cvs/xml-xerces/c/doc/program-others.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- program-others.xml 21 May 2002 18:18:50 -0000 1.1
+++ program-others.xml 17 Jun 2002 15:32:33 -0000 1.2
@@ -134,7 +134,7 @@
// specified in anotherXmlFile is IGNORED.
//
// Note: The anotherXmlFile cannot have any DTD internal subset.
- parser->setFeature(XMLUni::fgSAX2XercesReuseGrammar, true)
+ parser->setFeature(XMLUni::fgXercesReuseGrammar, true)
parser->parse(anotherXmlFile);
</source>
1.18 +3 -3 xml-xerces/c/doc/schema.xml
Index: schema.xml
===================================================================
RCS file: /home/cvs/xml-xerces/c/doc/schema.xml,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- schema.xml 7 Mar 2002 15:53:40 -0000 1.17
+++ schema.xml 17 Jun 2002 15:32:33 -0000 1.18
@@ -67,7 +67,7 @@
</p>
<source>SAX2XMLReader* parser = XMLReaderFactory::createXMLReader();
parser->setFeature(XMLUni::fgSAX2CoreNameSpaces, true);
-parser->setFeature(XMLUni::fgSAX2XercesSchema, true);
+parser->setFeature(XMLUni::fgXercesSchema, true);
parser->parse(xmlFile);
</source>
<p>Review the sample file, 'samples/data/personal-schema.xml' and
@@ -104,7 +104,7 @@
ArrayJanitor<XMLCh> janValue(propertyValue);
parser->setProperty(
- XMLUni::fgSAX2XercesSchemaExternalNoNameSpaceSchemaLocation,
+ XMLUni::fgXercesSchemaExternalNoNameSpaceSchemaLocation,
propertyValue);
parser.parse("test.xml");
</source>
@@ -127,7 +127,7 @@
ArrayJanitor<XMLCh> janValue(propertyValue);
parser->setProperty(
- XMLCh XMLUni::fgSAX2XercesSchemaExternalSchemaLocation,
+ XMLCh XMLUni::fgXercesSchemaExternalSchemaLocation,
propertyValue);
parser.parse("test.xml");
</source>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org