source: NonGTP/Xerces/xerces-c_2_8_0/scripts/sanityTest_ExpectedResult.log @ 2674

Revision 2674, 37.6 KB checked in by mattausch, 17 years ago (diff)
Line 
1
2Usage:
3    SAXCount [options] <XML file | List file>
4
5This program invokes the SAX Parser, and then prints the
6number of elements, attributes, spaces and characters found
7in each XML file, using SAX API.
8
9Options:
10    -l          Indicate the input file is a List File that has a list of xml files.
11                Default to off (Input file is an XML file).
12    -v=xxx      Validation scheme [always | never | auto*].
13    -n          Enable namespace processing. Defaults to off.
14    -s          Enable schema processing. Defaults to off.
15    -f          Enable full schema constraint checking. Defaults to off.
16    -locale=ll_CC specify the locale, default: en_US.
17    -?          Show this help.
18
19  * = Default if not provided explicitly.
20
21personal.xml:{timing removed}(37 elems, 12 attrs, 0 spaces, 268 chars)
22personal.xml:{timing removed}(37 elems, 12 attrs, 134 spaces, 134 chars)
23personal-schema.xml:{timing removed}(37 elems, 29 attrs, 140 spaces, 128 chars)
24
25Usage:
26    SAXPrint [options] <XML file>
27
28This program invokes the SAX Parser, and then prints the
29data returned by the various SAX handlers for the specified
30XML file.
31
32Options:
33    -u=xxx      Handle unrepresentable chars [fail | rep | ref*].
34    -v=xxx      Validation scheme [always | never | auto*].
35    -n          Enable namespace processing.
36    -s          Enable schema processing.
37    -f          Enable full schema constraint checking.
38    -x=XXX      Use a particular encoding for output (LATIN1*).
39    -?          Show this help.
40
41  * = Default if not provided explicitly.
42
43The parser has intrinsic support for the following encodings:
44    UTF-8, USASCII, ISO8859-1, UTF-16[BL]E, UCS-4[BL]E,
45    WINDOWS-1252, IBM1140, IBM037, IBM1047.
46
47<?xml version="1.0" encoding="LATIN1"?>
48<personnel>
49
50  <person id="Big.Boss">
51    <name><family>Boss</family> <given>Big</given></name>
52    <email>chief@foo.com</email>
53    <link subordinates="one.worker two.worker three.worker four.worker five.worker"></link>
54  </person>
55
56  <person id="one.worker">
57    <name><family>Worker</family> <given>One</given></name>
58    <email>one@foo.com</email>
59    <link manager="Big.Boss"></link>
60  </person>
61
62  <person id="two.worker">
63    <name><family>Worker</family> <given>Two</given></name>
64    <email>two@foo.com</email>
65    <link manager="Big.Boss"></link>
66  </person>
67
68  <person id="three.worker">
69    <name><family>Worker</family> <given>Three</given></name>
70    <email>three@foo.com</email>
71    <link manager="Big.Boss"></link>
72  </person>
73
74  <person id="four.worker">
75    <name><family>Worker</family> <given>Four</given></name>
76    <email>four@foo.com</email>
77    <link manager="Big.Boss"></link>
78  </person>
79
80  <person id="five.worker">
81    <name><family>Worker</family> <given>Five</given></name>
82    <email>five@foo.com</email>
83    <link manager="Big.Boss"></link>
84  </person>
85
86</personnel><?xml version="1.0" encoding="LATIN1"?>
87<personnel>
88
89  <person id="Big.Boss">
90    <name><family>Boss</family> <given>Big</given></name>
91    <email>chief@foo.com</email>
92    <link subordinates="one.worker two.worker three.worker four.worker five.worker"></link>
93  </person>
94
95  <person id="one.worker">
96    <name><family>Worker</family> <given>One</given></name>
97    <email>one@foo.com</email>
98    <link manager="Big.Boss"></link>
99  </person>
100
101  <person id="two.worker">
102    <name><family>Worker</family> <given>Two</given></name>
103    <email>two@foo.com</email>
104    <link manager="Big.Boss"></link>
105  </person>
106
107  <person id="three.worker">
108    <name><family>Worker</family> <given>Three</given></name>
109    <email>three@foo.com</email>
110    <link manager="Big.Boss"></link>
111  </person>
112
113  <person id="four.worker">
114    <name><family>Worker</family> <given>Four</given></name>
115    <email>four@foo.com</email>
116    <link manager="Big.Boss"></link>
117  </person>
118
119  <person id="five.worker">
120    <name><family>Worker</family> <given>Five</given></name>
121    <email>five@foo.com</email>
122    <link manager="Big.Boss"></link>
123  </person>
124
125</personnel><?xml version="1.0" encoding="LATIN1"?>
126<?proc-inst-1 'foo' ?><personnel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="personal.xsd">
127
128  <person id="Big.Boss" contr="false">
129    <name xml:base="foo/bar"><family xml:base="bar/bar">Boss</family> <given xml:base="car/bar">Big</given><?proc-inst-2 'foobar' ?></name>
130    <email>chief@foo.com</email>
131    <link subordinates="one.worker two.worker three.worker four.worker five.worker"></link>
132  </person>
133
134  <person id="one.worker" xml:base="/auto/bar" contr="false">
135    <name xml:base="/car/foo/"><family xml:base="bar/bar">Worker</family> <given>One</given></name>
136    <email>one@foo.com</email>
137    <link manager="Big.Boss"></link>
138  </person>
139
140  <person id="two.worker" xml:base="http://www.example.com/car/car" contr="false">
141    <name xml:base="/bar/foo/"><family xml:base="foo/bar">Worker</family> <given>Two</given></name>
142    <email>two@foo.com</email>
143    <link manager="Big.Boss"></link>
144  </person>
145
146  <person id="three.worker" contr="false">
147    <name><family>Worker</family> <given>Three</given></name>
148    <email>three@foo.com</email>
149    <link manager="Big.Boss"></link>
150  </person>
151
152  <person id="four.worker" contr="false">
153    <name><family>Worker</family> <given>Four</given></name>
154    <email>four@foo.com</email>
155    <link manager="Big.Boss"></link>
156  </person>
157
158  <person id="five.worker" contr="false">
159    <name><family>Worker</family> <given>Five</given></name>
160    <email>five@foo.com</email>
161    <link manager="Big.Boss"></link>
162  </person>
163
164</personnel>
165Usage:
166    SAX2Count [options] <XML file | List file>
167
168This program invokes the SAX2XMLReader, and then prints the
169number of elements, attributes, spaces and characters found
170in each XML file, using SAX2 API.
171
172Options:
173    -l          Indicate the input file is a List File that has a list of xml files.
174                Default to off (Input file is an XML file).
175    -v=xxx      Validation scheme [always | never | auto*].
176    -f          Enable full schema constraint checking processing. Defaults to off.
177    -p          Enable namespace-prefixes feature. Defaults to off.
178    -n          Disable namespace processing. Defaults to on.
179                NOTE: THIS IS OPPOSITE FROM OTHER SAMPLES.
180    -s          Disable schema processing. Defaults to on.
181                NOTE: THIS IS OPPOSITE FROM OTHER SAMPLES.
182    -i          Disable identity constraint checking. Defaults to on.
183                NOTE: THIS IS OPPOSITE FROM OTHER SAMPLES.
184    -locale=ll_CC specify the locale, default: en_US.
185    -?          Show this help.
186
187  * = Default if not provided explicitly.
188
189personal.xml:{timing removed}(37 elems, 12 attrs, 0 spaces, 268 chars)
190personal.xml:{timing removed}(37 elems, 12 attrs, 134 spaces, 134 chars)
191personal-schema.xml:{timing removed}(37 elems, 29 attrs, 140 spaces, 128 chars)
192
193Usage:
194    SAX2Print [options] <XML file>
195
196This program invokes the SAX2XMLReader, and then prints the
197data returned by the various SAX2 handlers for the specified
198XML file.
199
200Options:
201    -u=xxx      Handle unrepresentable chars [fail | rep | ref*].
202    -v=xxx      Validation scheme [always | never | auto*].
203    -e          Expand Namespace Alias with URI's. Defaults to off.
204    -x=XXX      Use a particular encoding for output (LATIN1*).
205    -f          Enable full schema constraint checking processing. Defaults to off.
206    -p          Enable namespace-prefixes feature. Defaults to off.
207    -n          Disable namespace processing. Defaults to on.
208                NOTE: THIS IS OPPOSITE FROM OTHER SAMPLES.
209    -s          Disable schema processing. Defaults to on.
210                NOTE: THIS IS OPPOSITE FROM OTHER SAMPLES.
211    -sa         Print the attributes in alfabetic order. Defaults to off.
212    -?          Show this help.
213
214  * = Default if not provided explicitly.
215
216The parser has intrinsic support for the following encodings:
217    UTF-8, USASCII, ISO8859-1, UTF-16[BL]E, UCS-4[BL]E,
218    WINDOWS-1252, IBM1140, IBM037, IBM1047.
219
220<?xml version="1.0" encoding="LATIN1"?>
221<personnel>
222
223  <person id="Big.Boss">
224    <name><family>Boss</family> <given>Big</given></name>
225    <email>chief@foo.com</email>
226    <link subordinates="one.worker two.worker three.worker four.worker five.worker"></link>
227  </person>
228
229  <person id="one.worker">
230    <name><family>Worker</family> <given>One</given></name>
231    <email>one@foo.com</email>
232    <link manager="Big.Boss"></link>
233  </person>
234
235  <person id="two.worker">
236    <name><family>Worker</family> <given>Two</given></name>
237    <email>two@foo.com</email>
238    <link manager="Big.Boss"></link>
239  </person>
240
241  <person id="three.worker">
242    <name><family>Worker</family> <given>Three</given></name>
243    <email>three@foo.com</email>
244    <link manager="Big.Boss"></link>
245  </person>
246
247  <person id="four.worker">
248    <name><family>Worker</family> <given>Four</given></name>
249    <email>four@foo.com</email>
250    <link manager="Big.Boss"></link>
251  </person>
252
253  <person id="five.worker">
254    <name><family>Worker</family> <given>Five</given></name>
255    <email>five@foo.com</email>
256    <link manager="Big.Boss"></link>
257  </person>
258
259</personnel><?xml version="1.0" encoding="LATIN1"?>
260<personnel>
261
262  <person id="Big.Boss">
263    <name><family>Boss</family> <given>Big</given></name>
264    <email>chief@foo.com</email>
265    <link subordinates="one.worker two.worker three.worker four.worker five.worker"></link>
266  </person>
267
268  <person id="one.worker">
269    <name><family>Worker</family> <given>One</given></name>
270    <email>one@foo.com</email>
271    <link manager="Big.Boss"></link>
272  </person>
273
274  <person id="two.worker">
275    <name><family>Worker</family> <given>Two</given></name>
276    <email>two@foo.com</email>
277    <link manager="Big.Boss"></link>
278  </person>
279
280  <person id="three.worker">
281    <name><family>Worker</family> <given>Three</given></name>
282    <email>three@foo.com</email>
283    <link manager="Big.Boss"></link>
284  </person>
285
286  <person id="four.worker">
287    <name><family>Worker</family> <given>Four</given></name>
288    <email>four@foo.com</email>
289    <link manager="Big.Boss"></link>
290  </person>
291
292  <person id="five.worker">
293    <name><family>Worker</family> <given>Five</given></name>
294    <email>five@foo.com</email>
295    <link manager="Big.Boss"></link>
296  </person>
297
298</personnel><?xml version="1.0" encoding="LATIN1"?>
299<?proc-inst-1 'foo' ?><personnel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="personal.xsd">
300
301  <person id="Big.Boss" contr="false">
302    <name xml:base="foo/bar"><family xml:base="bar/bar">Boss</family> <given xml:base="car/bar">Big</given><?proc-inst-2 'foobar' ?></name>
303    <email>chief@foo.com</email>
304    <link subordinates="one.worker two.worker three.worker four.worker five.worker"></link>
305  </person>
306
307  <person id="one.worker" xml:base="/auto/bar" contr="false">
308    <name xml:base="/car/foo/"><family xml:base="bar/bar">Worker</family> <given>One</given></name>
309    <email>one@foo.com</email>
310    <link manager="Big.Boss"></link>
311  </person>
312
313  <person id="two.worker" xml:base="http://www.example.com/car/car" contr="false">
314    <name xml:base="/bar/foo/"><family xml:base="foo/bar">Worker</family> <given>Two</given></name>
315    <email>two@foo.com</email>
316    <link manager="Big.Boss"></link>
317  </person>
318
319  <person id="three.worker" contr="false">
320    <name><family>Worker</family> <given>Three</given></name>
321    <email>three@foo.com</email>
322    <link manager="Big.Boss"></link>
323  </person>
324
325  <person id="four.worker" contr="false">
326    <name><family>Worker</family> <given>Four</given></name>
327    <email>four@foo.com</email>
328    <link manager="Big.Boss"></link>
329  </person>
330
331  <person id="five.worker" contr="false">
332    <name><family>Worker</family> <given>Five</given></name>
333    <email>five@foo.com</email>
334    <link manager="Big.Boss"></link>
335  </person>
336
337</personnel><?xml version="1.0" encoding="LATIN1"?>
338<xs:schema>
339
340 <xs:import namespace="http://www.w3.org/XML/1998/namespace">
341   <xs:annotation>
342     <xs:documentation>
343        The schemaLocation of the relevant file is
344        "http://www.w3.org/2001/xml.xsd"; however,
345        we don't want to assume people are always
346        connected to the 'net when playing with this file.
347     </xs:documentation>
348   </xs:annotation>
349 </xs:import>
350
351 <xs:element name="personnel">
352  <xs:complexType>
353   <xs:sequence>
354     <xs:element ref="person" minOccurs="1" maxOccurs="unbounded"></xs:element>
355   </xs:sequence>
356  </xs:complexType>
357
358  <xs:unique name="unique1">
359   <xs:selector xpath="person"></xs:selector>
360   <xs:field xpath="name/given"></xs:field>
361   <xs:field xpath="name/family"></xs:field>
362  </xs:unique>
363  <xs:key name="empid">
364   <xs:selector xpath="person"></xs:selector>
365   <xs:field xpath="@id"></xs:field>
366  </xs:key>
367  <xs:keyref name="keyref1" refer="empid">
368   <xs:selector xpath="person"></xs:selector>
369   <xs:field xpath="link/@manager"></xs:field> 
370  </xs:keyref>
371
372 </xs:element>
373
374 <xs:element name="person">
375  <xs:complexType>
376   <xs:sequence>
377     <xs:element ref="name"></xs:element>
378     <xs:element ref="email" minOccurs="0" maxOccurs="unbounded"></xs:element>
379     <xs:element ref="url" minOccurs="0" maxOccurs="unbounded"></xs:element>
380     <xs:element ref="link" minOccurs="0" maxOccurs="1"></xs:element>
381   </xs:sequence>
382   <xs:attribute name="id" type="xs:ID" use="required"></xs:attribute>
383   <xs:attribute name="note" type="xs:string"></xs:attribute>
384   <xs:attribute name="contr" default="false">
385    <xs:simpleType>
386     <xs:restriction base="xs:string">
387       <xs:enumeration value="true"></xs:enumeration>
388       <xs:enumeration value="false"></xs:enumeration>
389     </xs:restriction>
390    </xs:simpleType>
391   </xs:attribute>
392   <xs:attribute name="salary" type="xs:integer"></xs:attribute>
393   <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace" processContents="skip"></xs:anyAttribute>
394  </xs:complexType>
395 </xs:element>
396
397 <xs:element name="name">
398  <xs:complexType>
399   <xs:all>
400    <xs:element ref="family"></xs:element>
401    <xs:element ref="given"></xs:element>
402   </xs:all>
403   <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace" processContents="skip"></xs:anyAttribute>
404  </xs:complexType>
405 </xs:element>
406
407 <xs:element name="family">
408   <xs:complexType>
409     <xs:simpleContent>
410       <xs:extension base="xs:string">
411          <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace" processContents="skip"></xs:anyAttribute>
412        </xs:extension>
413     </xs:simpleContent>
414   </xs:complexType>
415 </xs:element>
416
417 <xs:element name="given">
418   <xs:complexType>
419     <xs:simpleContent>
420       <xs:extension base="xs:string">
421          <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace" processContents="skip"></xs:anyAttribute>
422        </xs:extension>
423     </xs:simpleContent>
424   </xs:complexType>
425 </xs:element>
426
427 <xs:element name="email" type="xs:string"></xs:element>
428
429 <xs:element name="url">
430  <xs:complexType>
431   <xs:attribute name="href" type="xs:string" default="http://"></xs:attribute>
432  </xs:complexType>
433 </xs:element>
434
435 <xs:element name="link">
436  <xs:complexType>
437   <xs:attribute name="manager" type="xs:IDREF"></xs:attribute>
438   <xs:attribute name="subordinates" type="xs:IDREFS"></xs:attribute>
439  </xs:complexType>
440 </xs:element>
441
442 <xs:notation name="gif" public="-//APP/Photoshop/4.0" system="photoshop.exe"></xs:notation>
443
444</xs:schema><?xml version="1.0" encoding="LATIN1"?>
445<xs:schema>
446
447 <xs:import namespace="http://www.w3.org/XML/1998/namespace">
448   <xs:annotation>
449     <xs:documentation>
450        The schemaLocation of the relevant file is
451        "http://www.w3.org/2001/xml.xsd"; however,
452        we don't want to assume people are always
453        connected to the 'net when playing with this file.
454     </xs:documentation>
455   </xs:annotation>
456 </xs:import>
457
458 <xs:element name="personnel">
459  <xs:complexType>
460   <xs:sequence>
461     <xs:element maxOccurs="unbounded" minOccurs="1" ref="person"></xs:element>
462   </xs:sequence>
463  </xs:complexType>
464
465  <xs:unique name="unique1">
466   <xs:selector xpath="person"></xs:selector>
467   <xs:field xpath="name/given"></xs:field>
468   <xs:field xpath="name/family"></xs:field>
469  </xs:unique>
470  <xs:key name="empid">
471   <xs:selector xpath="person"></xs:selector>
472   <xs:field xpath="@id"></xs:field>
473  </xs:key>
474  <xs:keyref name="keyref1" refer="empid">
475   <xs:selector xpath="person"></xs:selector>
476   <xs:field xpath="link/@manager"></xs:field> 
477  </xs:keyref>
478
479 </xs:element>
480
481 <xs:element name="person">
482  <xs:complexType>
483   <xs:sequence>
484     <xs:element ref="name"></xs:element>
485     <xs:element maxOccurs="unbounded" minOccurs="0" ref="email"></xs:element>
486     <xs:element maxOccurs="unbounded" minOccurs="0" ref="url"></xs:element>
487     <xs:element maxOccurs="1" minOccurs="0" ref="link"></xs:element>
488   </xs:sequence>
489   <xs:attribute name="id" type="xs:ID" use="required"></xs:attribute>
490   <xs:attribute name="note" type="xs:string"></xs:attribute>
491   <xs:attribute default="false" name="contr">
492    <xs:simpleType>
493     <xs:restriction base="xs:string">
494       <xs:enumeration value="true"></xs:enumeration>
495       <xs:enumeration value="false"></xs:enumeration>
496     </xs:restriction>
497    </xs:simpleType>
498   </xs:attribute>
499   <xs:attribute name="salary" type="xs:integer"></xs:attribute>
500   <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace" processContents="skip"></xs:anyAttribute>
501  </xs:complexType>
502 </xs:element>
503
504 <xs:element name="name">
505  <xs:complexType>
506   <xs:all>
507    <xs:element ref="family"></xs:element>
508    <xs:element ref="given"></xs:element>
509   </xs:all>
510   <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace" processContents="skip"></xs:anyAttribute>
511  </xs:complexType>
512 </xs:element>
513
514 <xs:element name="family">
515   <xs:complexType>
516     <xs:simpleContent>
517       <xs:extension base="xs:string">
518          <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace" processContents="skip"></xs:anyAttribute>
519        </xs:extension>
520     </xs:simpleContent>
521   </xs:complexType>
522 </xs:element>
523
524 <xs:element name="given">
525   <xs:complexType>
526     <xs:simpleContent>
527       <xs:extension base="xs:string">
528          <xs:anyAttribute namespace="http://www.w3.org/XML/1998/namespace" processContents="skip"></xs:anyAttribute>
529        </xs:extension>
530     </xs:simpleContent>
531   </xs:complexType>
532 </xs:element>
533
534 <xs:element name="email" type="xs:string"></xs:element>
535
536 <xs:element name="url">
537  <xs:complexType>
538   <xs:attribute default="http://" name="href" type="xs:string"></xs:attribute>
539  </xs:complexType>
540 </xs:element>
541
542 <xs:element name="link">
543  <xs:complexType>
544   <xs:attribute name="manager" type="xs:IDREF"></xs:attribute>
545   <xs:attribute name="subordinates" type="xs:IDREFS"></xs:attribute>
546  </xs:complexType>
547 </xs:element>
548
549 <xs:notation name="gif" public="-//APP/Photoshop/4.0" system="photoshop.exe"></xs:notation>
550
551</xs:schema>
552Finished parsing the memory buffer containing the following XML statements:
553
554<?xml version='1.0' encoding='ascii'?>
555<!DOCTYPE company [
556<!ELEMENT company     (product,category,developedAt)>
557<!ELEMENT product     (#PCDATA)>
558<!ELEMENT category    (#PCDATA)>
559<!ATTLIST category idea CDATA #IMPLIED>
560<!ELEMENT developedAt (#PCDATA)>
561]>
562
563<company>
564    <product>XML4C</product>
565    <category idea='great'>XML Parsing Tools</category>
566    <developedAt>
567      IBM Center for Java Technology, Silicon Valley, Cupertino, CA
568    </developedAt>
569</company>
570
571
572Parsing took{timing removed}(4 elements, 1 attributes, 16 spaces, 95 characters).
573
574
575Finished parsing the memory buffer containing the following XML statements:
576
577<?xml version='1.0' encoding='ascii'?>
578<!DOCTYPE company [
579<!ELEMENT company     (product,category,developedAt)>
580<!ELEMENT product     (#PCDATA)>
581<!ELEMENT category    (#PCDATA)>
582<!ATTLIST category idea CDATA #IMPLIED>
583<!ELEMENT developedAt (#PCDATA)>
584]>
585
586<company>
587    <product>XML4C</product>
588    <category idea='great'>XML Parsing Tools</category>
589    <developedAt>
590      IBM Center for Java Technology, Silicon Valley, Cupertino, CA
591    </developedAt>
592</company>
593
594
595Parsing took{timing removed}(4 elements, 1 attributes, 0 spaces, 111 characters).
596
597
598Usage:
599    Redirect <XML file>
600
601This program installs an entity resolver, traps the call to
602the external DTD file and redirects it to another application
603specific file which contains the actual dtd.
604
605The program then counts and reports the number of elements and
606attributes in the given XML file.
607
608personal.xml:{timing removed}(37 elems, 12 attrs, 0 spaces, 268 chars)
609
610Usage:
611    DOMCount [options] <XML file | List file>
612
613This program invokes the DOMBuilder, builds the DOM tree,
614and then prints the number of elements found in each XML file.
615
616Options:
617    -l          Indicate the input file is a List File that has a list of xml files.
618                Default to off (Input file is an XML file).
619    -v=xxx      Validation scheme [always | never | auto*].
620    -n          Enable namespace processing. Defaults to off.
621    -s          Enable schema processing. Defaults to off.
622    -f          Enable full schema constraint checking. Defaults to off.
623    -locale=ll_CC specify the locale, default: en_US.
624    -p          Print out names of elements and attributes encountered.
625    -?          Show this help.
626
627  * = Default if not provided explicitly.
628
629personal.xml:{timing removed}(37 elems).
630personal.xml:{timing removed}(37 elems).
631personal-schema.xml:{timing removed}(37 elems).
632
633Usage:
634    DOMPrint [options] <XML file>
635
636This program invokes the DOM parser, and builds the DOM tree.
637It then asks the DOMWriter to serialize the DOM tree.
638Options:
639    -e          create entity reference nodes. Default is no expansion.
640    -v=xxx      Validation scheme [always | never | auto*].
641    -n          Enable namespace processing. Default is off.
642    -s          Enable schema processing. Default is off.
643    -f          Enable full schema constraint checking. Defaults is off.
644    -wenc=XXX   Use a particular encoding for output. Default is
645                the same encoding as the input XML file. UTF-8 if
646                input XML file has not XML declaration.
647    -wfile=xxx  Write to a file instead of stdout.
648    -wscs=xxx   Enable/Disable split-cdata-sections.      Default on
649    -wddc=xxx   Enable/Disable discard-default-content.   Default on
650    -wflt=xxx   Enable/Disable filtering.                 Default off
651    -wfpp=xxx   Enable/Disable format-pretty-print.       Default off
652    -wbom=xxx   Enable/Disable write Byte-Order-Mark      Default off
653    -?          Show this help.
654
655  * = Default if not provided explicitly.
656
657The parser has intrinsic support for the following encodings:
658    UTF-8, USASCII, ISO8859-1, UTF-16[BL]E, UCS-4[BL]E,
659    WINDOWS-1252, IBM1140, IBM037, IBM1047.
660
661<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
662<!DOCTYPE personnel SYSTEM "personal.dtd">
663<!-- @version: -->
664<personnel>
665
666  <person id="Big.Boss">
667    <name>
668      <family>Boss</family>
669      <given>Big</given>
670    </name>
671    <email>chief@foo.com</email>
672    <link subordinates="one.worker two.worker three.worker four.worker five.worker"/>
673  </person>
674
675  <person id="one.worker">
676    <name>
677      <family>Worker</family>
678      <given>One</given>
679    </name>
680    <email>one@foo.com</email>
681    <link manager="Big.Boss"/>
682  </person>
683
684  <person id="two.worker">
685    <name>
686      <family>Worker</family>
687      <given>Two</given>
688    </name>
689    <email>two@foo.com</email>
690    <link manager="Big.Boss"/>
691  </person>
692
693  <person id="three.worker">
694    <name>
695      <family>Worker</family>
696      <given>Three</given>
697    </name>
698    <email>three@foo.com</email>
699    <link manager="Big.Boss"/>
700  </person>
701
702  <person id="four.worker">
703    <name>
704      <family>Worker</family>
705      <given>Four</given>
706    </name>
707    <email>four@foo.com</email>
708    <link manager="Big.Boss"/>
709  </person>
710
711  <person id="five.worker">
712    <name>
713      <family>Worker</family>
714      <given>Five</given>
715    </name>
716    <email>five@foo.com</email>
717    <link manager="Big.Boss"/>
718  </person>
719
720
721</personnel>
722<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
723<!DOCTYPE personnel SYSTEM "personal.dtd">
724<!-- @version: -->
725<personnel>
726
727  <person id="Big.Boss">
728    <name>
729      <family>Boss</family>
730      <given>Big</given>
731    </name>
732    <email>chief@foo.com</email>
733    <link subordinates="one.worker two.worker three.worker four.worker five.worker"/>
734  </person>
735
736  <person id="one.worker">
737    <name>
738      <family>Worker</family>
739      <given>One</given>
740    </name>
741    <email>one@foo.com</email>
742    <link manager="Big.Boss"/>
743  </person>
744
745  <person id="two.worker">
746    <name>
747      <family>Worker</family>
748      <given>Two</given>
749    </name>
750    <email>two@foo.com</email>
751    <link manager="Big.Boss"/>
752  </person>
753
754  <person id="three.worker">
755    <name>
756      <family>Worker</family>
757      <given>Three</given>
758    </name>
759    <email>three@foo.com</email>
760    <link manager="Big.Boss"/>
761  </person>
762
763  <person id="four.worker">
764    <name>
765      <family>Worker</family>
766      <given>Four</given>
767    </name>
768    <email>four@foo.com</email>
769    <link manager="Big.Boss"/>
770  </person>
771
772  <person id="five.worker">
773    <name>
774      <family>Worker</family>
775      <given>Five</given>
776    </name>
777    <email>five@foo.com</email>
778    <link manager="Big.Boss"/>
779  </person>
780
781
782</personnel>
783<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
784<!DOCTYPE personnel SYSTEM "personal.dtd">
785<!-- @version: -->
786<personnel>
787
788  <person id="Big.Boss">
789    <name>
790      <family>Boss</family>
791      <given>Big</given>
792    </name>
793    <email>chief@foo.com</email>
794    <link subordinates="one.worker two.worker three.worker four.worker five.worker"/>
795  </person>
796
797  <person id="one.worker">
798    <name>
799      <family>Worker</family>
800      <given>One</given>
801    </name>
802    <email>one@foo.com</email>
803    <link manager="Big.Boss"/>
804  </person>
805
806  <person id="two.worker">
807    <name>
808      <family>Worker</family>
809      <given>Two</given>
810    </name>
811    <email>two@foo.com</email>
812    <link manager="Big.Boss"/>
813  </person>
814
815  <person id="three.worker">
816    <name>
817      <family>Worker</family>
818      <given>Three</given>
819    </name>
820    <email>three@foo.com</email>
821    <link manager="Big.Boss"/>
822  </person>
823
824  <person id="four.worker">
825    <name>
826      <family>Worker</family>
827      <given>Four</given>
828    </name>
829    <email>four@foo.com</email>
830    <link manager="Big.Boss"/>
831  </person>
832
833  <person id="five.worker">
834    <name>
835      <family>Worker</family>
836      <given>Five</given>
837    </name>
838    <email>five@foo.com</email>
839    <link manager="Big.Boss"/>
840  </person>
841
842
843</personnel>
844<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
845<?proc-inst-1 'foo' ?>
846<personnel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="personal.xsd">
847
848  <person contr="false" id="Big.Boss">
849    <name xml:base="foo/bar">
850      <family xml:base="bar/bar">Boss</family>
851      <given xml:base="car/bar">Big</given>
852      <?proc-inst-2 'foobar' ?>
853    </name>
854    <email>chief@foo.com</email>
855    <link subordinates="one.worker two.worker three.worker four.worker five.worker"/>
856  </person>
857
858  <person contr="false" id="one.worker" xml:base="/auto/bar">
859    <name xml:base="/car/foo/">
860      <family xml:base="bar/bar">Worker</family>
861      <given>One</given>
862    </name>
863    <email>one@foo.com</email>
864    <link manager="Big.Boss"/>
865  </person>
866
867  <person contr="false" id="two.worker" xml:base="http://www.example.com/car/car">
868    <name xml:base="/bar/foo/">
869      <family xml:base="foo/bar">Worker</family>
870      <given>Two</given>
871    </name>
872    <email>two@foo.com</email>
873    <link manager="Big.Boss"/>
874  </person>
875
876  <person contr="false" id="three.worker">
877    <name>
878      <family>Worker</family>
879      <given>Three</given>
880    </name>
881    <email>three@foo.com</email>
882    <link manager="Big.Boss"/>
883  </person>
884
885  <person contr="false" id="four.worker">
886    <name>
887      <family>Worker</family>
888      <given>Four</given>
889    </name>
890    <email>four@foo.com</email>
891    <link manager="Big.Boss"/>
892  </person>
893
894  <person contr="false" id="five.worker">
895    <name>
896      <family>Worker</family>
897      <given>Five</given>
898    </name>
899    <email>five@foo.com</email>
900    <link manager="Big.Boss"/>
901  </person>
902
903
904</personnel>
905stdin:{timing removed}(37 elems, 12 attrs, 134 spaces, 134 chars)
906stdin:{timing removed}(37 elems, 12 attrs, 0 spaces, 268 chars)
907stdin:{timing removed}(37 elems, 29 attrs, 140 spaces, 128 chars)
908
909Usage:
910    PParse [options] <XML file>
911
912This program demonstrates the progressive parse capabilities of
913the parser system. It allows you to do a scanFirst() call followed by
914a loop which calls scanNext(). You can drop out when you've found what
915ever it is you want. In our little test, our event handler looks for
91616 new elements then sets a flag to indicate its found what it wants.
917At that point, our progressive parse loop exits.
918
919Options:
920      -v=xxx        - Validation scheme [always | never | auto*].
921      -n            - Enable namespace processing [default is off].
922      -s            - Enable schema processing [default is off].
923      -f            - Enable full schema constraint checking [default is off].
924      -?            - Show this help.
925
926  * = Default if not provided explicitly.
927
928personal.xml:{timing removed}(37 elems, 12 attrs, 134 spaces, 134 chars)
929personal-schema.xml:{timing removed}(37 elems, 29 attrs, 140 spaces, 128 chars)
930
931Usage:
932    EnumVal <XML file>
933
934This program parses the specified XML file, then shows how to
935enumerate the contents of the DTD Grammar. Essentially,
936shows how one can access the DTD information stored in internal
937data structures.
938
939
940ELEMENTS:
941----------------------------
942  Name: personnel
943  Content Model: (person)+
944
945  Name: person
946  Content Model: (name,email*,url*,link?)
947  Attributes:
948    Name:id, Type: ID
949
950  Name: name
951  Content Model: (#PCDATA|family|given)*
952
953  Name: email
954  Content Model: (#PCDATA)
955
956  Name: url
957  Content Model: EMPTY
958  Attributes:
959    Name:href, Type: CDATA
960
961  Name: link
962  Content Model: EMPTY
963  Attributes:
964    Name:manager, Type: IDREF(S)
965    Name:subordinates, Type: IDREF(S)
966
967  Name: family
968  Content Model: (#PCDATA)
969
970  Name: given
971  Content Model: (#PCDATA)
972
973
974Usage:
975    SEnumVal <XML file>
976
977This program parses a file, then shows how to enumerate the
978contents of the Schema Grammar. Essentially, shows how one can
979access the Schema information stored in internal data structures.
980
981Name:                   personnel
982Model Type:             Children
983Create Reason:  Declared
984ContentType:   
985Content Model:  (person,)
986ComplexType:
987        TypeName:       ,__AnonC0
988        ContentType:   
989--------------------------------------------
990Name:                   person
991Model Type:             Children
992Create Reason:  Declared
993ContentType:   
994Content Model:  ((name,email,url),link)
995ComplexType:
996        TypeName:       ,__AnonC1
997        ContentType:   
998Attributes:
999        Name:                   id
1000        Type:                   ID
1001        Default Type:   #REQUIRED
1002        Base Datatype:          ID
1003
1004        Name:                   note
1005        Type:                   CDATA
1006        Default Type:   #IMPLIED
1007        Base Datatype:          string
1008
1009        Name:                   contr
1010        Type:                   CDATA
1011        Default Type:   #DEFAULT
1012        Value:                  false
1013        Base Datatype:          string
1014Enumeration:           
1015        true
1016        false
1017
1018        Name:                   salary
1019        Type:                   CDATA
1020        Default Type:   #IMPLIED
1021        Base Datatype:          Decimal
1022Facets:         
1023        fractionDigits=0
1024        pattern=[+\-]?[0-9]+
1025
1026--------------------------------------------
1027Name:                   name
1028Model Type:             Children
1029Create Reason:  Declared
1030ContentType:    All
1031Content Model:  All(family,given)
1032ComplexType:
1033        TypeName:       ,__AnonC2
1034        ContentType:    All
1035--------------------------------------------
1036Name:                   family
1037Model Type:             Simple
1038Create Reason:  Declared
1039ComplexType:
1040        TypeName:       ,__AnonC3
1041Base Datatype:          string
1042--------------------------------------------
1043Name:                   given
1044Model Type:             Simple
1045Create Reason:  Declared
1046ComplexType:
1047        TypeName:       ,__AnonC4
1048Base Datatype:          string
1049--------------------------------------------
1050Name:                   email
1051Model Type:             Simple
1052Create Reason:  Declared
1053Base Datatype:          string
1054--------------------------------------------
1055Name:                   url
1056Model Type:             Empty
1057Create Reason:  Declared
1058Content Model:  EMPTY
1059ComplexType:
1060        TypeName:       ,__AnonC5
1061Attributes:
1062        Name:                   href
1063        Type:                   CDATA
1064        Default Type:   #DEFAULT
1065        Value:                  http://
1066        Base Datatype:          string
1067
1068--------------------------------------------
1069Name:                   link
1070Model Type:             Empty
1071Create Reason:  Declared
1072Content Model:  EMPTY
1073ComplexType:
1074        TypeName:       ,__AnonC6
1075Attributes:
1076        Name:                   manager
1077        Type:                   IDREF
1078        Default Type:   #IMPLIED
1079        Base Datatype:          IDREF
1080
1081        Name:                   subordinates
1082        Type:                   IDREFS
1083        Default Type:   #IMPLIED
1084        Base Datatype:          List
1085Facets:         
1086        minLength=1
1087
1088--------------------------------------------
1089The tree just created contains: 4 elements.
1090DOMMemTest
1091Test Run Successfully
1092DOMTest
1093Test Run Successfully
1094RangeTest
1095Test Run Successfully
1096DOMTraversalTest
1097Test Run Successfully
1098
1099Usage:
1100    DeprecatedDOMCount [options] <XML file | List file>
1101
1102This program invokes the DOM parser, builds the DOM tree,
1103and then prints the number of elements found in each XML file.
1104
1105Options:
1106    -l          Indicate the input file is a List File that has a list of xml files.
1107                Default to off (Input file is an XML file).
1108    -v=xxx      Validation scheme [always | never | auto*].
1109    -n          Enable namespace processing. Defaults to off.
1110    -s          Enable schema processing. Defaults to off.
1111    -f          Enable full schema constraint checking. Defaults to off.
1112    -?          Show this help.
1113
1114  * = Default if not provided explicitly.
1115
1116personal.xml:{timing removed}(37 elems).
1117personal.xml:{timing removed}(37 elems).
1118personal-schema.xml:{timing removed}(37 elems).
1119
1120Usage:
1121    XSerializerTest [options] <XML file | List file>
1122
1123This program invokes the SAX2XMLReader, and then prints the
1124number of elements, attributes, spaces and characters found
1125in each XML file, using SAX2 API.
1126
1127Options:
1128    -l          Indicate the input file is a List File that has a list of xml files.
1129                Default to off (Input file is an XML file).
1130    -v=xxx      Validation scheme [always | never | auto*].
1131    -f          Enable full schema constraint checking processing. Defaults to off.
1132    -p          Enable namespace-prefixes feature. Defaults to off.
1133    -n          Disable namespace processing. Defaults to on.
1134                NOTE: THIS IS OPPOSITE FROM OTHER SAMPLES.
1135    -s          Disable schema processing. Defaults to on.
1136                NOTE: THIS IS OPPOSITE FROM OTHER SAMPLES.
1137    -locale=ll_CC specify the locale, default: en_US.
1138    -?          Show this help.
1139
1140  * = Default if not provided explicitly.
1141
1142personal.xml:{timing removed}(37 elems, 12 attrs, 0 spaces, 268 chars)
1143personal.xml:{timing removed}(37 elems, 12 attrs, 134 spaces, 134 chars)
1144personal-schema.xml:{timing removed}(37 elems, 28 attrs, 0 spaces, 268 chars)
1145personal-schema.xml:{timing removed}(37 elems, 28 attrs, 140 spaces, 128 chars)
1146personal-schema.xml:{timing removed}(37 elems, 28 attrs, 140 spaces, 128 chars)
1147
1148XSValueTest Pass
1149
1150Usage:
1151    InitTermTest [options] <XML file>
1152
1153This program tests the XMLPlatformUtils::Initialize()/Terminate()
1154pair by calling it a number of times.
1155Options:
1156    -n          Enable namespace processing. Default is off.
1157    -s          Enable schema processing. Default is off.
1158    -f          Enable full schema constraint checking. Defaults to off.
1159    -?          Show this help.
1160
11611Test Run Successfully
11622Test Run Successfully
11633Test Run Successfully
1164No input XML file specified on command line.
1165usage:  ThreadTest [-v] [-threads nnn] [-time nnn] [-quiet] [-verbose] xmlfile...
1166     -v=xxx         Validation scheme [always | never | auto].  Default is AUTO.
1167     -n             Enable namespace processing. Defaults to off.
1168     -s             Enable schema processing. Defaults to off.
1169     -f             Enable full schema constraint checking. Defaults to off.
1170     -parser=xxx    Parser Type [dom | sax | sax2].  Default is SAX (SAX1).
1171     -p             Enable namespace prefixes. Defaults to off.
1172                    (Only used with -parser=sax2, ignored otherwise.)
1173     -quiet         Suppress periodic status display.
1174     -verbose       Display extra messages.
1175     -reuse         Retain and reuse parser.  Default creates new for each parse.
1176     -threads nnn   Number of threads.  Default is 2.
1177     -time nnn      Total time to run, in seconds.  Default is forever.
1178     -parses nnn    Run for nnn parses instead of time.  Default is to use time
1179     -dump          Dump DOM tree on error.
1180     -mem           Read files into memory once only, and parse them from there.
1181     -gc            Enable grammar caching (i.e. grammar cached and used in subsequent parses). Defaults to off.
1182     -init          Perform an initial parse of the file(s) before starting up the individual threads.
1183
11841Test Run Successfully
11852Test Run Successfully
11863Test Run Successfully
11874Test Run Successfully
11885Test Run Successfully
11896Test Run Successfully
11907Test Run Successfully
11918Test Run Successfully
11929Test Run Successfully
119310Test Run Successfully
119411Test Run Successfully
119512Test Run Successfully
119613Test Run Successfully
119714Test Run Successfully
119815Test Run Successfully
1199
1200Usage:
1201    MemHandlerTest [options] <XML file | List file>
1202
1203This program invokes the XercesDOMParser, DOMBuilder, SAXParser ,
1204and the SAX2XMLReader, and ensures that MemoryManagers set on these
1205domBuilders are called to delete just as many bytes as they allocate.
1206This is done for each XML file, and each file is processed
1207as many times as indicated.
1208Options:
1209    -l          Indicate the input file is a List File that has a list of xml files.
1210                Default to off (Input file is an XML file).
1211    -v=xxx      Validation scheme [always | never | auto*].
1212    -n          Enable namespace processing. Defaults to off.
1213    -s          Enable schema processing. Defaults to off.
1214    -f          Enable full schema constraint checking. Defaults to off.
1215    -r=n        Run file through domBuilders n times.
1216    -?          Show this help.
1217
1218  * = Default if not provided explicitly.
1219
1220At destruction, domBuilderMemMonitor has 0 bytes.
1221At destruction, sax2MemMonitor has 0 bytes.
1222At destruction, depDOMMemMonitor has 0 bytes.
1223At destruction, sax1MemMonitor has 0 bytes.
1224At destruction, staticMemMonitor has 0 bytes.
1225At destruction, domBuilderMemMonitor has 0 bytes.
1226At destruction, sax2MemMonitor has 0 bytes.
1227At destruction, depDOMMemMonitor has 0 bytes.
1228At destruction, sax1MemMonitor has 0 bytes.
1229At destruction, staticMemMonitor has 0 bytes.
1230Test Run Successfully
Note: See TracBrowser for help on using the repository browser.