cargilld 2004/04/22 03:44:45
Modified: c/doc faq-parse.xml program-sax2.xml
Log:
Misc doc updates
Revision Changes Path
1.62 +6 -5 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.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- faq-parse.xml 13 Feb 2004 20:42:54 -0000 1.61
+++ faq-parse.xml 22 Apr 2004 10:44:45 -0000 1.62
@@ -898,19 +898,20 @@
</a>
</faq>
- <faq title="Why do we have two versions of XMLString::transcode (one with memory
manager and one without)?">
+ <faq title="Why do we have two versions of some XMLString methods (one with
memory manager and one without)?">
- <q>Why do we have two versions of XMLString::transcode (one with memory manager
and one without)?</q>
+ <q>Why do we have two versions of some XMLString methods (one with memory
manager and one without)?</q>
<a>
- <p>With the introdcution of the configurable memory manager, we didn't want
to break users by
- changing the signature of the method. Also, we did not want to provide a
default memory
+ <p>With the introduction of the configurable memory manager, we didn't want
to break users by
+ changing the signature of the existing methods (for example, transcode and
replicate). Also,
+ we did not want to provide a default memory
manager as it would introduce a side effect with users experiencing some
strange core dumps.
The latter will occur when the scope of the string allocated is beyond
that of
XMLPlatformUtils::Terminate (i.e. a string is allocated using the default
memory manager
which is deleted when XMLPlatformUtils::Terminate is called, but the
allocated string is
- deleted later). We plan to deprecate the transcode method with no
parameters in later releases.
+ deleted later). We plan to deprecate the methods without a memory manager
in a later release.
</p>
</a>
1.21 +2 -2 xml-xerces/c/doc/program-sax2.xml
Index: program-sax2.xml
===================================================================
RCS file: /home/cvs/xml-xerces/c/doc/program-sax2.xml,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- program-sax2.xml 12 Feb 2004 19:13:47 -0000 1.20
+++ program-sax2.xml 22 Apr 2004 10:44:45 -0000 1.21
@@ -114,8 +114,8 @@
char* xmlFile = "x1.xml";
SAX2XMLReader* parser = XMLReaderFactory::createXMLReader();
- parser->setFeature(XMLUni::fgSAX2CoreValidation, true) // optional
- parser->setFeature(XMLUni::fgSAX2CoreNameSpaces, true) // optional
+ parser->setFeature(XMLUni::fgSAX2CoreValidation, true); // optional
+ parser->setFeature(XMLUni::fgSAX2CoreNameSpaces, true); // optional
DefaultHandler* defaultHandler = new DefaultHandler();
parser->setContentHandler(defaultHandler);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]