You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ra...@locus.apache.org on 2000/01/28 19:34:02 UTC
cvs commit: xml-xerces/c/doc saxprint.xml
rahulj 00/01/28 10:34:02
Modified: c/doc saxprint.xml
Log:
Corrected the text to reflect what the sample program
illustrates. Error introduced due to 'cut & paste' action.
Revision Changes Path
1.2 +16 -10 xml-xerces/c/doc/saxprint.xml
Index: saxprint.xml
===================================================================
RCS file: /home/cvs/xml-xerces/c/doc/saxprint.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- saxprint.xml 2000/01/22 00:37:20 1.1
+++ saxprint.xml 2000/01/28 18:34:01 1.2
@@ -4,35 +4,41 @@
<s1 title="&XercesCName; Sample 2">
<s2 title="SAXPrint">
- <p>SAXPrint uses the SAX APIs to parse an XML file and print it back.
- Notice that the output of this file is not exactly the same as
- the input (in terms of whitespaces), but the output has the same
- information content as the input.</p>
+ <p>SAXPrint uses the SAX APIs to parse an XML file and print
+ it back. Do note that the output of this sample is not
+ exactly the same as the input (in terms of whitespaces, first
+ line), but the output has the same information content as the
+ input.</p>
<s3 title="Building on Windows">
- <p>Load the &XercesCInstallDir;-win32\samples\Projects\Win32\VC6\samples.dsw
+ <p>Load the
+ &XercesCInstallDir;-win32\samples\Projects\Win32\VC6\samples.dsw
Microsoft Visual C++ workspace inside your MSVC IDE. Then
build the project marked SAXPrint.
</p>
</s3>
<s3 title="Building on UNIX">
+
<source>cd &XercesCInstallDir;-linux/samples
./runConfigure -p<platform> -c<C_compiler> -x<C++_compiler>
cd SAXPrint
gmake</source>
- <p>This will create the object files in the current directory and
- the executable named SAXPrint in '&XercesCInstallDir;-linux/bin'
- directory.</p>
+
+ <p>This will create the object files in the current directory
+ and the executable named SAXPrint in
+ '&XercesCInstallDir;-linux/bin' directory.</p>
<p>To delete all the generated object files and executables, type</p>
<source>gmake clean</source>
</s3>
<s3 title="Running SAXPrint">
+
+ <p>The SAXPrint sample parses an XML file and prints out the
+ contents again in XML (some loss occurs). To run SAXPrint,
+ enter the following </p>
- <p>The SAXPrint sample parses an XML file and prints out a count of the number of
- elements in the file. To run SAXPrint, enter the following </p>
<source>SAXPrint <XML file></source>
<p>To use the validating parser, use </p>
<source>SAXPrint -v <XML file></source>