1 | |
---|
2 | Usage: |
---|
3 | SAXCount [options] <XML file | List file> |
---|
4 | |
---|
5 | This program invokes the SAX Parser, and then prints the |
---|
6 | number of elements, attributes, spaces and characters found |
---|
7 | in each XML file, using SAX API. |
---|
8 | |
---|
9 | Options: |
---|
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 | |
---|
21 | personal.xml:{timing removed}(37 elems, 12 attrs, 0 spaces, 268 chars) |
---|
22 | personal.xml:{timing removed}(37 elems, 12 attrs, 134 spaces, 134 chars) |
---|
23 | personal-schema.xml:{timing removed}(37 elems, 29 attrs, 140 spaces, 128 chars) |
---|
24 | |
---|
25 | Usage: |
---|
26 | SAXPrint [options] <XML file> |
---|
27 | |
---|
28 | This program invokes the SAX Parser, and then prints the |
---|
29 | data returned by the various SAX handlers for the specified |
---|
30 | XML file. |
---|
31 | |
---|
32 | Options: |
---|
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 | |
---|
43 | The 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> |
---|
165 | Usage: |
---|
166 | SAX2Count [options] <XML file | List file> |
---|
167 | |
---|
168 | This program invokes the SAX2XMLReader, and then prints the |
---|
169 | number of elements, attributes, spaces and characters found |
---|
170 | in each XML file, using SAX2 API. |
---|
171 | |
---|
172 | Options: |
---|
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 | |
---|
189 | personal.xml:{timing removed}(37 elems, 12 attrs, 0 spaces, 268 chars) |
---|
190 | personal.xml:{timing removed}(37 elems, 12 attrs, 134 spaces, 134 chars) |
---|
191 | personal-schema.xml:{timing removed}(37 elems, 29 attrs, 140 spaces, 128 chars) |
---|
192 | |
---|
193 | Usage: |
---|
194 | SAX2Print [options] <XML file> |
---|
195 | |
---|
196 | This program invokes the SAX2XMLReader, and then prints the |
---|
197 | data returned by the various SAX2 handlers for the specified |
---|
198 | XML file. |
---|
199 | |
---|
200 | Options: |
---|
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 | |
---|
216 | The 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> |
---|
552 | Finished 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 | |
---|
572 | Parsing took{timing removed}(4 elements, 1 attributes, 16 spaces, 95 characters). |
---|
573 | |
---|
574 | |
---|
575 | Finished 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 | |
---|
595 | Parsing took{timing removed}(4 elements, 1 attributes, 0 spaces, 111 characters). |
---|
596 | |
---|
597 | |
---|
598 | Usage: |
---|
599 | Redirect <XML file> |
---|
600 | |
---|
601 | This program installs an entity resolver, traps the call to |
---|
602 | the external DTD file and redirects it to another application |
---|
603 | specific file which contains the actual dtd. |
---|
604 | |
---|
605 | The program then counts and reports the number of elements and |
---|
606 | attributes in the given XML file. |
---|
607 | |
---|
608 | personal.xml:{timing removed}(37 elems, 12 attrs, 0 spaces, 268 chars) |
---|
609 | |
---|
610 | Usage: |
---|
611 | DOMCount [options] <XML file | List file> |
---|
612 | |
---|
613 | This program invokes the DOMBuilder, builds the DOM tree, |
---|
614 | and then prints the number of elements found in each XML file. |
---|
615 | |
---|
616 | Options: |
---|
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 | |
---|
629 | personal.xml:{timing removed}(37 elems). |
---|
630 | personal.xml:{timing removed}(37 elems). |
---|
631 | personal-schema.xml:{timing removed}(37 elems). |
---|
632 | |
---|
633 | Usage: |
---|
634 | DOMPrint [options] <XML file> |
---|
635 | |
---|
636 | This program invokes the DOM parser, and builds the DOM tree. |
---|
637 | It then asks the DOMWriter to serialize the DOM tree. |
---|
638 | Options: |
---|
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 | |
---|
657 | The 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> |
---|
905 | stdin:{timing removed}(37 elems, 12 attrs, 134 spaces, 134 chars) |
---|
906 | stdin:{timing removed}(37 elems, 12 attrs, 0 spaces, 268 chars) |
---|
907 | stdin:{timing removed}(37 elems, 29 attrs, 140 spaces, 128 chars) |
---|
908 | |
---|
909 | Usage: |
---|
910 | PParse [options] <XML file> |
---|
911 | |
---|
912 | This program demonstrates the progressive parse capabilities of |
---|
913 | the parser system. It allows you to do a scanFirst() call followed by |
---|
914 | a loop which calls scanNext(). You can drop out when you've found what |
---|
915 | ever it is you want. In our little test, our event handler looks for |
---|
916 | 16 new elements then sets a flag to indicate its found what it wants. |
---|
917 | At that point, our progressive parse loop exits. |
---|
918 | |
---|
919 | Options: |
---|
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 | |
---|
928 | personal.xml:{timing removed}(37 elems, 12 attrs, 134 spaces, 134 chars) |
---|
929 | personal-schema.xml:{timing removed}(37 elems, 29 attrs, 140 spaces, 128 chars) |
---|
930 | |
---|
931 | Usage: |
---|
932 | EnumVal <XML file> |
---|
933 | |
---|
934 | This program parses the specified XML file, then shows how to |
---|
935 | enumerate the contents of the DTD Grammar. Essentially, |
---|
936 | shows how one can access the DTD information stored in internal |
---|
937 | data structures. |
---|
938 | |
---|
939 | |
---|
940 | ELEMENTS: |
---|
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 | |
---|
974 | Usage: |
---|
975 | SEnumVal <XML file> |
---|
976 | |
---|
977 | This program parses a file, then shows how to enumerate the |
---|
978 | contents of the Schema Grammar. Essentially, shows how one can |
---|
979 | access the Schema information stored in internal data structures. |
---|
980 | |
---|
981 | Name: personnel |
---|
982 | Model Type: Children |
---|
983 | Create Reason: Declared |
---|
984 | ContentType: |
---|
985 | Content Model: (person,) |
---|
986 | ComplexType: |
---|
987 | TypeName: ,__AnonC0 |
---|
988 | ContentType: |
---|
989 | -------------------------------------------- |
---|
990 | Name: person |
---|
991 | Model Type: Children |
---|
992 | Create Reason: Declared |
---|
993 | ContentType: |
---|
994 | Content Model: ((name,email,url),link) |
---|
995 | ComplexType: |
---|
996 | TypeName: ,__AnonC1 |
---|
997 | ContentType: |
---|
998 | Attributes: |
---|
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 |
---|
1014 | Enumeration: |
---|
1015 | true |
---|
1016 | false |
---|
1017 | |
---|
1018 | Name: salary |
---|
1019 | Type: CDATA |
---|
1020 | Default Type: #IMPLIED |
---|
1021 | Base Datatype: Decimal |
---|
1022 | Facets: |
---|
1023 | fractionDigits=0 |
---|
1024 | pattern=[+\-]?[0-9]+ |
---|
1025 | |
---|
1026 | -------------------------------------------- |
---|
1027 | Name: name |
---|
1028 | Model Type: Children |
---|
1029 | Create Reason: Declared |
---|
1030 | ContentType: All |
---|
1031 | Content Model: All(family,given) |
---|
1032 | ComplexType: |
---|
1033 | TypeName: ,__AnonC2 |
---|
1034 | ContentType: All |
---|
1035 | -------------------------------------------- |
---|
1036 | Name: family |
---|
1037 | Model Type: Simple |
---|
1038 | Create Reason: Declared |
---|
1039 | ComplexType: |
---|
1040 | TypeName: ,__AnonC3 |
---|
1041 | Base Datatype: string |
---|
1042 | -------------------------------------------- |
---|
1043 | Name: given |
---|
1044 | Model Type: Simple |
---|
1045 | Create Reason: Declared |
---|
1046 | ComplexType: |
---|
1047 | TypeName: ,__AnonC4 |
---|
1048 | Base Datatype: string |
---|
1049 | -------------------------------------------- |
---|
1050 | Name: email |
---|
1051 | Model Type: Simple |
---|
1052 | Create Reason: Declared |
---|
1053 | Base Datatype: string |
---|
1054 | -------------------------------------------- |
---|
1055 | Name: url |
---|
1056 | Model Type: Empty |
---|
1057 | Create Reason: Declared |
---|
1058 | Content Model: EMPTY |
---|
1059 | ComplexType: |
---|
1060 | TypeName: ,__AnonC5 |
---|
1061 | Attributes: |
---|
1062 | Name: href |
---|
1063 | Type: CDATA |
---|
1064 | Default Type: #DEFAULT |
---|
1065 | Value: http:// |
---|
1066 | Base Datatype: string |
---|
1067 | |
---|
1068 | -------------------------------------------- |
---|
1069 | Name: link |
---|
1070 | Model Type: Empty |
---|
1071 | Create Reason: Declared |
---|
1072 | Content Model: EMPTY |
---|
1073 | ComplexType: |
---|
1074 | TypeName: ,__AnonC6 |
---|
1075 | Attributes: |
---|
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 |
---|
1085 | Facets: |
---|
1086 | minLength=1 |
---|
1087 | |
---|
1088 | -------------------------------------------- |
---|
1089 | The tree just created contains: 4 elements. |
---|
1090 | DOMMemTest |
---|
1091 | Test Run Successfully |
---|
1092 | DOMTest |
---|
1093 | Test Run Successfully |
---|
1094 | RangeTest |
---|
1095 | Test Run Successfully |
---|
1096 | DOMTraversalTest |
---|
1097 | Test Run Successfully |
---|
1098 | |
---|
1099 | Usage: |
---|
1100 | DeprecatedDOMCount [options] <XML file | List file> |
---|
1101 | |
---|
1102 | This program invokes the DOM parser, builds the DOM tree, |
---|
1103 | and then prints the number of elements found in each XML file. |
---|
1104 | |
---|
1105 | Options: |
---|
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 | |
---|
1116 | personal.xml:{timing removed}(37 elems). |
---|
1117 | personal.xml:{timing removed}(37 elems). |
---|
1118 | personal-schema.xml:{timing removed}(37 elems). |
---|
1119 | |
---|
1120 | Usage: |
---|
1121 | XSerializerTest [options] <XML file | List file> |
---|
1122 | |
---|
1123 | This program invokes the SAX2XMLReader, and then prints the |
---|
1124 | number of elements, attributes, spaces and characters found |
---|
1125 | in each XML file, using SAX2 API. |
---|
1126 | |
---|
1127 | Options: |
---|
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 | |
---|
1142 | personal.xml:{timing removed}(37 elems, 12 attrs, 0 spaces, 268 chars) |
---|
1143 | personal.xml:{timing removed}(37 elems, 12 attrs, 134 spaces, 134 chars) |
---|
1144 | personal-schema.xml:{timing removed}(37 elems, 28 attrs, 0 spaces, 268 chars) |
---|
1145 | personal-schema.xml:{timing removed}(37 elems, 28 attrs, 140 spaces, 128 chars) |
---|
1146 | personal-schema.xml:{timing removed}(37 elems, 28 attrs, 140 spaces, 128 chars) |
---|
1147 | |
---|
1148 | XSValueTest Pass |
---|
1149 | |
---|
1150 | Usage: |
---|
1151 | InitTermTest [options] <XML file> |
---|
1152 | |
---|
1153 | This program tests the XMLPlatformUtils::Initialize()/Terminate() |
---|
1154 | pair by calling it a number of times. |
---|
1155 | Options: |
---|
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 | |
---|
1161 | 1Test Run Successfully |
---|
1162 | 2Test Run Successfully |
---|
1163 | 3Test Run Successfully |
---|
1164 | No input XML file specified on command line. |
---|
1165 | usage: 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 | |
---|
1184 | 1Test Run Successfully |
---|
1185 | 2Test Run Successfully |
---|
1186 | 3Test Run Successfully |
---|
1187 | 4Test Run Successfully |
---|
1188 | 5Test Run Successfully |
---|
1189 | 6Test Run Successfully |
---|
1190 | 7Test Run Successfully |
---|
1191 | 8Test Run Successfully |
---|
1192 | 9Test Run Successfully |
---|
1193 | 10Test Run Successfully |
---|
1194 | 11Test Run Successfully |
---|
1195 | 12Test Run Successfully |
---|
1196 | 13Test Run Successfully |
---|
1197 | 14Test Run Successfully |
---|
1198 | 15Test Run Successfully |
---|
1199 | |
---|
1200 | Usage: |
---|
1201 | MemHandlerTest [options] <XML file | List file> |
---|
1202 | |
---|
1203 | This program invokes the XercesDOMParser, DOMBuilder, SAXParser , |
---|
1204 | and the SAX2XMLReader, and ensures that MemoryManagers set on these |
---|
1205 | domBuilders are called to delete just as many bytes as they allocate. |
---|
1206 | This is done for each XML file, and each file is processed |
---|
1207 | as many times as indicated. |
---|
1208 | Options: |
---|
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 | |
---|
1220 | At destruction, domBuilderMemMonitor has 0 bytes. |
---|
1221 | At destruction, sax2MemMonitor has 0 bytes. |
---|
1222 | At destruction, depDOMMemMonitor has 0 bytes. |
---|
1223 | At destruction, sax1MemMonitor has 0 bytes. |
---|
1224 | At destruction, staticMemMonitor has 0 bytes. |
---|
1225 | At destruction, domBuilderMemMonitor has 0 bytes. |
---|
1226 | At destruction, sax2MemMonitor has 0 bytes. |
---|
1227 | At destruction, depDOMMemMonitor has 0 bytes. |
---|
1228 | At destruction, sax1MemMonitor has 0 bytes. |
---|
1229 | At destruction, staticMemMonitor has 0 bytes. |
---|
1230 | Test Run Successfully |
---|