[358] | 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 | -? Show this help.
|
---|
| 212 |
|
---|
| 213 | * = Default if not provided explicitly.
|
---|
| 214 |
|
---|
| 215 | The parser has intrinsic support for the following encodings:
|
---|
| 216 | UTF-8, USASCII, ISO8859-1, UTF-16[BL]E, UCS-4[BL]E,
|
---|
| 217 | WINDOWS-1252, IBM1140, IBM037, IBM1047.
|
---|
| 218 |
|
---|
| 219 | <?xml version="1.0" encoding="LATIN1"?>
|
---|
| 220 | <personnel>
|
---|
| 221 |
|
---|
| 222 | <person id="Big.Boss">
|
---|
| 223 | <name><family>Boss</family> <given>Big</given></name>
|
---|
| 224 | <email>chief@foo.com</email>
|
---|
| 225 | <link subordinates="one.worker two.worker three.worker four.worker five.worker"></link>
|
---|
| 226 | </person>
|
---|
| 227 |
|
---|
| 228 | <person id="one.worker">
|
---|
| 229 | <name><family>Worker</family> <given>One</given></name>
|
---|
| 230 | <email>one@foo.com</email>
|
---|
| 231 | <link manager="Big.Boss"></link>
|
---|
| 232 | </person>
|
---|
| 233 |
|
---|
| 234 | <person id="two.worker">
|
---|
| 235 | <name><family>Worker</family> <given>Two</given></name>
|
---|
| 236 | <email>two@foo.com</email>
|
---|
| 237 | <link manager="Big.Boss"></link>
|
---|
| 238 | </person>
|
---|
| 239 |
|
---|
| 240 | <person id="three.worker">
|
---|
| 241 | <name><family>Worker</family> <given>Three</given></name>
|
---|
| 242 | <email>three@foo.com</email>
|
---|
| 243 | <link manager="Big.Boss"></link>
|
---|
| 244 | </person>
|
---|
| 245 |
|
---|
| 246 | <person id="four.worker">
|
---|
| 247 | <name><family>Worker</family> <given>Four</given></name>
|
---|
| 248 | <email>four@foo.com</email>
|
---|
| 249 | <link manager="Big.Boss"></link>
|
---|
| 250 | </person>
|
---|
| 251 |
|
---|
| 252 | <person id="five.worker">
|
---|
| 253 | <name><family>Worker</family> <given>Five</given></name>
|
---|
| 254 | <email>five@foo.com</email>
|
---|
| 255 | <link manager="Big.Boss"></link>
|
---|
| 256 | </person>
|
---|
| 257 |
|
---|
| 258 | </personnel><?xml version="1.0" encoding="LATIN1"?>
|
---|
| 259 | <personnel>
|
---|
| 260 |
|
---|
| 261 | <person id="Big.Boss">
|
---|
| 262 | <name><family>Boss</family> <given>Big</given></name>
|
---|
| 263 | <email>chief@foo.com</email>
|
---|
| 264 | <link subordinates="one.worker two.worker three.worker four.worker five.worker"></link>
|
---|
| 265 | </person>
|
---|
| 266 |
|
---|
| 267 | <person id="one.worker">
|
---|
| 268 | <name><family>Worker</family> <given>One</given></name>
|
---|
| 269 | <email>one@foo.com</email>
|
---|
| 270 | <link manager="Big.Boss"></link>
|
---|
| 271 | </person>
|
---|
| 272 |
|
---|
| 273 | <person id="two.worker">
|
---|
| 274 | <name><family>Worker</family> <given>Two</given></name>
|
---|
| 275 | <email>two@foo.com</email>
|
---|
| 276 | <link manager="Big.Boss"></link>
|
---|
| 277 | </person>
|
---|
| 278 |
|
---|
| 279 | <person id="three.worker">
|
---|
| 280 | <name><family>Worker</family> <given>Three</given></name>
|
---|
| 281 | <email>three@foo.com</email>
|
---|
| 282 | <link manager="Big.Boss"></link>
|
---|
| 283 | </person>
|
---|
| 284 |
|
---|
| 285 | <person id="four.worker">
|
---|
| 286 | <name><family>Worker</family> <given>Four</given></name>
|
---|
| 287 | <email>four@foo.com</email>
|
---|
| 288 | <link manager="Big.Boss"></link>
|
---|
| 289 | </person>
|
---|
| 290 |
|
---|
| 291 | <person id="five.worker">
|
---|
| 292 | <name><family>Worker</family> <given>Five</given></name>
|
---|
| 293 | <email>five@foo.com</email>
|
---|
| 294 | <link manager="Big.Boss"></link>
|
---|
| 295 | </person>
|
---|
| 296 |
|
---|
| 297 | </personnel><?xml version="1.0" encoding="LATIN1"?>
|
---|
| 298 | <?proc-inst-1 'foo' ?><personnel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="personal.xsd">
|
---|
| 299 |
|
---|
| 300 | <person id="Big.Boss" contr="false">
|
---|
| 301 | <name xml:base="foo/bar"><family xml:base="bar/bar">Boss</family> <given xml:base="car/bar">Big</given><?proc-inst-2 'foobar' ?></name>
|
---|
| 302 | <email>chief@foo.com</email>
|
---|
| 303 | <link subordinates="one.worker two.worker three.worker four.worker five.worker"></link>
|
---|
| 304 | </person>
|
---|
| 305 |
|
---|
| 306 | <person id="one.worker" xml:base="/auto/bar" contr="false">
|
---|
| 307 | <name xml:base="/car/foo/"><family xml:base="bar/bar">Worker</family> <given>One</given></name>
|
---|
| 308 | <email>one@foo.com</email>
|
---|
| 309 | <link manager="Big.Boss"></link>
|
---|
| 310 | </person>
|
---|
| 311 |
|
---|
| 312 | <person id="two.worker" xml:base="http://www.example.com/car/car" contr="false">
|
---|
| 313 | <name xml:base="/bar/foo/"><family xml:base="foo/bar">Worker</family> <given>Two</given></name>
|
---|
| 314 | <email>two@foo.com</email>
|
---|
| 315 | <link manager="Big.Boss"></link>
|
---|
| 316 | </person>
|
---|
| 317 |
|
---|
| 318 | <person id="three.worker" contr="false">
|
---|
| 319 | <name><family>Worker</family> <given>Three</given></name>
|
---|
| 320 | <email>three@foo.com</email>
|
---|
| 321 | <link manager="Big.Boss"></link>
|
---|
| 322 | </person>
|
---|
| 323 |
|
---|
| 324 | <person id="four.worker" contr="false">
|
---|
| 325 | <name><family>Worker</family> <given>Four</given></name>
|
---|
| 326 | <email>four@foo.com</email>
|
---|
| 327 | <link manager="Big.Boss"></link>
|
---|
| 328 | </person>
|
---|
| 329 |
|
---|
| 330 | <person id="five.worker" contr="false">
|
---|
| 331 | <name><family>Worker</family> <given>Five</given></name>
|
---|
| 332 | <email>five@foo.com</email>
|
---|
| 333 | <link manager="Big.Boss"></link>
|
---|
| 334 | </person>
|
---|
| 335 |
|
---|
| 336 | </personnel>
|
---|
| 337 | Finished parsing the memory buffer containing the following XML statements:
|
---|
| 338 |
|
---|
| 339 | <?xml version='1.0' encoding='ascii'?>
|
---|
| 340 | <!DOCTYPE company [
|
---|
| 341 | <!ELEMENT company (product,category,developedAt)>
|
---|
| 342 | <!ELEMENT product (#PCDATA)>
|
---|
| 343 | <!ELEMENT category (#PCDATA)>
|
---|
| 344 | <!ATTLIST category idea CDATA #IMPLIED>
|
---|
| 345 | <!ELEMENT developedAt (#PCDATA)>
|
---|
| 346 | ]>
|
---|
| 347 |
|
---|
| 348 | <company>
|
---|
| 349 | <product>XML4C</product>
|
---|
| 350 | <category idea='great'>XML Parsing Tools</category>
|
---|
| 351 | <developedAt>
|
---|
| 352 | IBM Center for Java Technology, Silicon Valley, Cupertino, CA
|
---|
| 353 | </developedAt>
|
---|
| 354 | </company>
|
---|
| 355 |
|
---|
| 356 |
|
---|
| 357 | Parsing took{timing removed}(4 elements, 1 attributes, 16 spaces, 95 characters).
|
---|
| 358 |
|
---|
| 359 |
|
---|
| 360 | Finished parsing the memory buffer containing the following XML statements:
|
---|
| 361 |
|
---|
| 362 | <?xml version='1.0' encoding='ascii'?>
|
---|
| 363 | <!DOCTYPE company [
|
---|
| 364 | <!ELEMENT company (product,category,developedAt)>
|
---|
| 365 | <!ELEMENT product (#PCDATA)>
|
---|
| 366 | <!ELEMENT category (#PCDATA)>
|
---|
| 367 | <!ATTLIST category idea CDATA #IMPLIED>
|
---|
| 368 | <!ELEMENT developedAt (#PCDATA)>
|
---|
| 369 | ]>
|
---|
| 370 |
|
---|
| 371 | <company>
|
---|
| 372 | <product>XML4C</product>
|
---|
| 373 | <category idea='great'>XML Parsing Tools</category>
|
---|
| 374 | <developedAt>
|
---|
| 375 | IBM Center for Java Technology, Silicon Valley, Cupertino, CA
|
---|
| 376 | </developedAt>
|
---|
| 377 | </company>
|
---|
| 378 |
|
---|
| 379 |
|
---|
| 380 | Parsing took{timing removed}(4 elements, 1 attributes, 0 spaces, 111 characters).
|
---|
| 381 |
|
---|
| 382 |
|
---|
| 383 | Usage:
|
---|
| 384 | Redirect <XML file>
|
---|
| 385 |
|
---|
| 386 | This program installs an entity resolver, traps the call to
|
---|
| 387 | the external DTD file and redirects it to another application
|
---|
| 388 | specific file which contains the actual dtd.
|
---|
| 389 |
|
---|
| 390 | The program then counts and reports the number of elements and
|
---|
| 391 | attributes in the given XML file.
|
---|
| 392 |
|
---|
| 393 | personal.xml:{timing removed}(37 elems, 12 attrs, 0 spaces, 268 chars)
|
---|
| 394 |
|
---|
| 395 | Usage:
|
---|
| 396 | DOMCount [options] <XML file | List file>
|
---|
| 397 |
|
---|
| 398 | This program invokes the DOMBuilder, builds the DOM tree,
|
---|
| 399 | and then prints the number of elements found in each XML file.
|
---|
| 400 |
|
---|
| 401 | Options:
|
---|
| 402 | -l Indicate the input file is a List File that has a list of xml files.
|
---|
| 403 | Default to off (Input file is an XML file).
|
---|
| 404 | -v=xxx Validation scheme [always | never | auto*].
|
---|
| 405 | -n Enable namespace processing. Defaults to off.
|
---|
| 406 | -s Enable schema processing. Defaults to off.
|
---|
| 407 | -f Enable full schema constraint checking. Defaults to off.
|
---|
| 408 | -locale=ll_CC specify the locale, default: en_US.
|
---|
| 409 | -p Print out names of elements and attributes encountered.
|
---|
| 410 | -? Show this help.
|
---|
| 411 |
|
---|
| 412 | * = Default if not provided explicitly.
|
---|
| 413 |
|
---|
| 414 | personal.xml:{timing removed}(37 elems).
|
---|
| 415 | personal.xml:{timing removed}(37 elems).
|
---|
| 416 | personal-schema.xml:{timing removed}(37 elems).
|
---|
| 417 |
|
---|
| 418 | Usage:
|
---|
| 419 | DOMPrint [options] <XML file>
|
---|
| 420 |
|
---|
| 421 | This program invokes the DOM parser, and builds the DOM tree.
|
---|
| 422 | It then asks the DOMWriter to serialize the DOM tree.
|
---|
| 423 | Options:
|
---|
| 424 | -e create entity reference nodes. Default is no expansion.
|
---|
| 425 | -v=xxx Validation scheme [always | never | auto*].
|
---|
| 426 | -n Enable namespace processing. Default is off.
|
---|
| 427 | -s Enable schema processing. Default is off.
|
---|
| 428 | -f Enable full schema constraint checking. Defaults is off.
|
---|
| 429 | -wenc=XXX Use a particular encoding for output. Default is
|
---|
| 430 | the same encoding as the input XML file. UTF-8 if
|
---|
| 431 | input XML file has not XML declaration.
|
---|
| 432 | -wfile=xxx Write to a file instead of stdout.
|
---|
| 433 | -wscs=xxx Enable/Disable split-cdata-sections. Default on
|
---|
| 434 | -wddc=xxx Enable/Disable discard-default-content. Default on
|
---|
| 435 | -wflt=xxx Enable/Disable filtering. Default off
|
---|
| 436 | -wfpp=xxx Enable/Disable format-pretty-print. Default off
|
---|
| 437 | -wbom=xxx Enable/Disable write Byte-Order-Mark Default off
|
---|
| 438 | -? Show this help.
|
---|
| 439 |
|
---|
| 440 | * = Default if not provided explicitly.
|
---|
| 441 |
|
---|
| 442 | The parser has intrinsic support for the following encodings:
|
---|
| 443 | UTF-8, USASCII, ISO8859-1, UTF-16[BL]E, UCS-4[BL]E,
|
---|
| 444 | WINDOWS-1252, IBM1140, IBM037, IBM1047.
|
---|
| 445 |
|
---|
| 446 | <?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
|
---|
| 447 | <!DOCTYPE personnel SYSTEM "personal.dtd">
|
---|
| 448 | <!-- @version: -->
|
---|
| 449 | <personnel>
|
---|
| 450 |
|
---|
| 451 | <person id="Big.Boss">
|
---|
| 452 | <name>
|
---|
| 453 | <family>Boss</family>
|
---|
| 454 | <given>Big</given>
|
---|
| 455 | </name>
|
---|
| 456 | <email>chief@foo.com</email>
|
---|
| 457 | <link subordinates="one.worker two.worker three.worker four.worker five.worker"/>
|
---|
| 458 | </person>
|
---|
| 459 |
|
---|
| 460 | <person id="one.worker">
|
---|
| 461 | <name>
|
---|
| 462 | <family>Worker</family>
|
---|
| 463 | <given>One</given>
|
---|
| 464 | </name>
|
---|
| 465 | <email>one@foo.com</email>
|
---|
| 466 | <link manager="Big.Boss"/>
|
---|
| 467 | </person>
|
---|
| 468 |
|
---|
| 469 | <person id="two.worker">
|
---|
| 470 | <name>
|
---|
| 471 | <family>Worker</family>
|
---|
| 472 | <given>Two</given>
|
---|
| 473 | </name>
|
---|
| 474 | <email>two@foo.com</email>
|
---|
| 475 | <link manager="Big.Boss"/>
|
---|
| 476 | </person>
|
---|
| 477 |
|
---|
| 478 | <person id="three.worker">
|
---|
| 479 | <name>
|
---|
| 480 | <family>Worker</family>
|
---|
| 481 | <given>Three</given>
|
---|
| 482 | </name>
|
---|
| 483 | <email>three@foo.com</email>
|
---|
| 484 | <link manager="Big.Boss"/>
|
---|
| 485 | </person>
|
---|
| 486 |
|
---|
| 487 | <person id="four.worker">
|
---|
| 488 | <name>
|
---|
| 489 | <family>Worker</family>
|
---|
| 490 | <given>Four</given>
|
---|
| 491 | </name>
|
---|
| 492 | <email>four@foo.com</email>
|
---|
| 493 | <link manager="Big.Boss"/>
|
---|
| 494 | </person>
|
---|
| 495 |
|
---|
| 496 | <person id="five.worker">
|
---|
| 497 | <name>
|
---|
| 498 | <family>Worker</family>
|
---|
| 499 | <given>Five</given>
|
---|
| 500 | </name>
|
---|
| 501 | <email>five@foo.com</email>
|
---|
| 502 | <link manager="Big.Boss"/>
|
---|
| 503 | </person>
|
---|
| 504 |
|
---|
| 505 |
|
---|
| 506 | </personnel>
|
---|
| 507 | <?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
|
---|
| 508 | <!DOCTYPE personnel SYSTEM "personal.dtd">
|
---|
| 509 | <!-- @version: -->
|
---|
| 510 | <personnel>
|
---|
| 511 |
|
---|
| 512 | <person id="Big.Boss">
|
---|
| 513 | <name>
|
---|
| 514 | <family>Boss</family>
|
---|
| 515 | <given>Big</given>
|
---|
| 516 | </name>
|
---|
| 517 | <email>chief@foo.com</email>
|
---|
| 518 | <link subordinates="one.worker two.worker three.worker four.worker five.worker"/>
|
---|
| 519 | </person>
|
---|
| 520 |
|
---|
| 521 | <person id="one.worker">
|
---|
| 522 | <name>
|
---|
| 523 | <family>Worker</family>
|
---|
| 524 | <given>One</given>
|
---|
| 525 | </name>
|
---|
| 526 | <email>one@foo.com</email>
|
---|
| 527 | <link manager="Big.Boss"/>
|
---|
| 528 | </person>
|
---|
| 529 |
|
---|
| 530 | <person id="two.worker">
|
---|
| 531 | <name>
|
---|
| 532 | <family>Worker</family>
|
---|
| 533 | <given>Two</given>
|
---|
| 534 | </name>
|
---|
| 535 | <email>two@foo.com</email>
|
---|
| 536 | <link manager="Big.Boss"/>
|
---|
| 537 | </person>
|
---|
| 538 |
|
---|
| 539 | <person id="three.worker">
|
---|
| 540 | <name>
|
---|
| 541 | <family>Worker</family>
|
---|
| 542 | <given>Three</given>
|
---|
| 543 | </name>
|
---|
| 544 | <email>three@foo.com</email>
|
---|
| 545 | <link manager="Big.Boss"/>
|
---|
| 546 | </person>
|
---|
| 547 |
|
---|
| 548 | <person id="four.worker">
|
---|
| 549 | <name>
|
---|
| 550 | <family>Worker</family>
|
---|
| 551 | <given>Four</given>
|
---|
| 552 | </name>
|
---|
| 553 | <email>four@foo.com</email>
|
---|
| 554 | <link manager="Big.Boss"/>
|
---|
| 555 | </person>
|
---|
| 556 |
|
---|
| 557 | <person id="five.worker">
|
---|
| 558 | <name>
|
---|
| 559 | <family>Worker</family>
|
---|
| 560 | <given>Five</given>
|
---|
| 561 | </name>
|
---|
| 562 | <email>five@foo.com</email>
|
---|
| 563 | <link manager="Big.Boss"/>
|
---|
| 564 | </person>
|
---|
| 565 |
|
---|
| 566 |
|
---|
| 567 | </personnel>
|
---|
| 568 | <?xml version="1.0" encoding="iso-8859-1" standalone="no" ?>
|
---|
| 569 | <!DOCTYPE personnel SYSTEM "personal.dtd">
|
---|
| 570 | <!-- @version: -->
|
---|
| 571 | <personnel>
|
---|
| 572 |
|
---|
| 573 | <person id="Big.Boss">
|
---|
| 574 | <name>
|
---|
| 575 | <family>Boss</family>
|
---|
| 576 | <given>Big</given>
|
---|
| 577 | </name>
|
---|
| 578 | <email>chief@foo.com</email>
|
---|
| 579 | <link subordinates="one.worker two.worker three.worker four.worker five.worker"/>
|
---|
| 580 | </person>
|
---|
| 581 |
|
---|
| 582 | <person id="one.worker">
|
---|
| 583 | <name>
|
---|
| 584 | <family>Worker</family>
|
---|
| 585 | <given>One</given>
|
---|
| 586 | </name>
|
---|
| 587 | <email>one@foo.com</email>
|
---|
| 588 | <link manager="Big.Boss"/>
|
---|
| 589 | </person>
|
---|
| 590 |
|
---|
| 591 | <person id="two.worker">
|
---|
| 592 | <name>
|
---|
| 593 | <family>Worker</family>
|
---|
| 594 | <given>Two</given>
|
---|
| 595 | </name>
|
---|
| 596 | <email>two@foo.com</email>
|
---|
| 597 | <link manager="Big.Boss"/>
|
---|
| 598 | </person>
|
---|
| 599 |
|
---|
| 600 | <person id="three.worker">
|
---|
| 601 | <name>
|
---|
| 602 | <family>Worker</family>
|
---|
| 603 | <given>Three</given>
|
---|
| 604 | </name>
|
---|
| 605 | <email>three@foo.com</email>
|
---|
| 606 | <link manager="Big.Boss"/>
|
---|
| 607 | </person>
|
---|
| 608 |
|
---|
| 609 | <person id="four.worker">
|
---|
| 610 | <name>
|
---|
| 611 | <family>Worker</family>
|
---|
| 612 | <given>Four</given>
|
---|
| 613 | </name>
|
---|
| 614 | <email>four@foo.com</email>
|
---|
| 615 | <link manager="Big.Boss"/>
|
---|
| 616 | </person>
|
---|
| 617 |
|
---|
| 618 | <person id="five.worker">
|
---|
| 619 | <name>
|
---|
| 620 | <family>Worker</family>
|
---|
| 621 | <given>Five</given>
|
---|
| 622 | </name>
|
---|
| 623 | <email>five@foo.com</email>
|
---|
| 624 | <link manager="Big.Boss"/>
|
---|
| 625 | </person>
|
---|
| 626 |
|
---|
| 627 |
|
---|
| 628 | </personnel>
|
---|
| 629 | <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
---|
| 630 | <?proc-inst-1 'foo' ?>
|
---|
| 631 | <personnel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="personal.xsd">
|
---|
| 632 |
|
---|
| 633 | <person contr="false" id="Big.Boss">
|
---|
| 634 | <name xml:base="foo/bar">
|
---|
| 635 | <family xml:base="bar/bar">Boss</family>
|
---|
| 636 | <given xml:base="car/bar">Big</given>
|
---|
| 637 | <?proc-inst-2 'foobar' ?>
|
---|
| 638 | </name>
|
---|
| 639 | <email>chief@foo.com</email>
|
---|
| 640 | <link subordinates="one.worker two.worker three.worker four.worker five.worker"/>
|
---|
| 641 | </person>
|
---|
| 642 |
|
---|
| 643 | <person contr="false" id="one.worker" xml:base="/auto/bar">
|
---|
| 644 | <name xml:base="/car/foo/">
|
---|
| 645 | <family xml:base="bar/bar">Worker</family>
|
---|
| 646 | <given>One</given>
|
---|
| 647 | </name>
|
---|
| 648 | <email>one@foo.com</email>
|
---|
| 649 | <link manager="Big.Boss"/>
|
---|
| 650 | </person>
|
---|
| 651 |
|
---|
| 652 | <person contr="false" id="two.worker" xml:base="http://www.example.com/car/car">
|
---|
| 653 | <name xml:base="/bar/foo/">
|
---|
| 654 | <family xml:base="foo/bar">Worker</family>
|
---|
| 655 | <given>Two</given>
|
---|
| 656 | </name>
|
---|
| 657 | <email>two@foo.com</email>
|
---|
| 658 | <link manager="Big.Boss"/>
|
---|
| 659 | </person>
|
---|
| 660 |
|
---|
| 661 | <person contr="false" id="three.worker">
|
---|
| 662 | <name>
|
---|
| 663 | <family>Worker</family>
|
---|
| 664 | <given>Three</given>
|
---|
| 665 | </name>
|
---|
| 666 | <email>three@foo.com</email>
|
---|
| 667 | <link manager="Big.Boss"/>
|
---|
| 668 | </person>
|
---|
| 669 |
|
---|
| 670 | <person contr="false" id="four.worker">
|
---|
| 671 | <name>
|
---|
| 672 | <family>Worker</family>
|
---|
| 673 | <given>Four</given>
|
---|
| 674 | </name>
|
---|
| 675 | <email>four@foo.com</email>
|
---|
| 676 | <link manager="Big.Boss"/>
|
---|
| 677 | </person>
|
---|
| 678 |
|
---|
| 679 | <person contr="false" id="five.worker">
|
---|
| 680 | <name>
|
---|
| 681 | <family>Worker</family>
|
---|
| 682 | <given>Five</given>
|
---|
| 683 | </name>
|
---|
| 684 | <email>five@foo.com</email>
|
---|
| 685 | <link manager="Big.Boss"/>
|
---|
| 686 | </person>
|
---|
| 687 |
|
---|
| 688 |
|
---|
| 689 | </personnel>
|
---|
| 690 | stdin:{timing removed}(37 elems, 12 attrs, 134 spaces, 134 chars)
|
---|
| 691 | stdin:{timing removed}(37 elems, 12 attrs, 0 spaces, 268 chars)
|
---|
| 692 | stdin:{timing removed}(37 elems, 29 attrs, 140 spaces, 128 chars)
|
---|
| 693 |
|
---|
| 694 | Usage:
|
---|
| 695 | PParse [options] <XML file>
|
---|
| 696 |
|
---|
| 697 | This program demonstrates the progressive parse capabilities of
|
---|
| 698 | the parser system. It allows you to do a scanFirst() call followed by
|
---|
| 699 | a loop which calls scanNext(). You can drop out when you've found what
|
---|
| 700 | ever it is you want. In our little test, our event handler looks for
|
---|
| 701 | 16 new elements then sets a flag to indicate its found what it wants.
|
---|
| 702 | At that point, our progressive parse loop exits.
|
---|
| 703 |
|
---|
| 704 | Options:
|
---|
| 705 | -v=xxx - Validation scheme [always | never | auto*].
|
---|
| 706 | -n - Enable namespace processing [default is off].
|
---|
| 707 | -s - Enable schema processing [default is off].
|
---|
| 708 | -f - Enable full schema constraint checking [default is off].
|
---|
| 709 | -? - Show this help.
|
---|
| 710 |
|
---|
| 711 | * = Default if not provided explicitly.
|
---|
| 712 |
|
---|
| 713 | personal.xml:{timing removed}(37 elems, 12 attrs, 134 spaces, 134 chars)
|
---|
| 714 | personal-schema.xml:{timing removed}(37 elems, 29 attrs, 140 spaces, 128 chars)
|
---|
| 715 |
|
---|
| 716 | Usage:
|
---|
| 717 | EnumVal <XML file>
|
---|
| 718 |
|
---|
| 719 | This program parses the specified XML file, then shows how to
|
---|
| 720 | enumerate the contents of the DTD Grammar. Essentially,
|
---|
| 721 | shows how one can access the DTD information stored in internal
|
---|
| 722 | data structures.
|
---|
| 723 |
|
---|
| 724 |
|
---|
| 725 | ELEMENTS:
|
---|
| 726 | ----------------------------
|
---|
| 727 | Name: personnel
|
---|
| 728 | Content Model: (person)+
|
---|
| 729 |
|
---|
| 730 | Name: person
|
---|
| 731 | Content Model: (name,email*,url*,link?)
|
---|
| 732 | Attributes:
|
---|
| 733 | Name:id, Type: ID
|
---|
| 734 |
|
---|
| 735 | Name: name
|
---|
| 736 | Content Model: (#PCDATA|family|given)*
|
---|
| 737 |
|
---|
| 738 | Name: email
|
---|
| 739 | Content Model: (#PCDATA)
|
---|
| 740 |
|
---|
| 741 | Name: url
|
---|
| 742 | Content Model: EMPTY
|
---|
| 743 | Attributes:
|
---|
| 744 | Name:href, Type: CDATA
|
---|
| 745 |
|
---|
| 746 | Name: link
|
---|
| 747 | Content Model: EMPTY
|
---|
| 748 | Attributes:
|
---|
| 749 | Name:subordinates, Type: IDREF(S)
|
---|
| 750 | Name:manager, Type: IDREF(S)
|
---|
| 751 |
|
---|
| 752 | Name: family
|
---|
| 753 | Content Model: (#PCDATA)
|
---|
| 754 |
|
---|
| 755 | Name: given
|
---|
| 756 | Content Model: (#PCDATA)
|
---|
| 757 |
|
---|
| 758 |
|
---|
| 759 | Usage:
|
---|
| 760 | SEnumVal <XML file>
|
---|
| 761 |
|
---|
| 762 | This program parses a file, then shows how to enumerate the
|
---|
| 763 | contents of the Schema Grammar. Essentially, shows how one can
|
---|
| 764 | access the Schema information stored in internal data structures.
|
---|
| 765 |
|
---|
| 766 | Name: personnel
|
---|
| 767 | Model Type: Children
|
---|
| 768 | Create Reason: Declared
|
---|
| 769 | ContentType:
|
---|
| 770 | Content Model: (person,)
|
---|
| 771 | ComplexType:
|
---|
| 772 | TypeName: ,C0
|
---|
| 773 | ContentType:
|
---|
| 774 | --------------------------------------------
|
---|
| 775 | Name: person
|
---|
| 776 | Model Type: Children
|
---|
| 777 | Create Reason: Declared
|
---|
| 778 | ContentType:
|
---|
| 779 | Content Model: ((name,email,url),link)
|
---|
| 780 | ComplexType:
|
---|
| 781 | TypeName: ,C1
|
---|
| 782 | ContentType:
|
---|
| 783 | Attributes:
|
---|
| 784 | Name: salary
|
---|
| 785 | Type: CDATA
|
---|
| 786 | Default Type: #IMPLIED
|
---|
| 787 | Base Datatype: Decimal
|
---|
| 788 | Facets:
|
---|
| 789 | fractionDigits=0
|
---|
| 790 | pattern=[+\-]?[0-9]+
|
---|
| 791 |
|
---|
| 792 | Name: id
|
---|
| 793 | Type: ID
|
---|
| 794 | Default Type: #REQUIRED
|
---|
| 795 | Base Datatype: ID
|
---|
| 796 |
|
---|
| 797 | Name: contr
|
---|
| 798 | Type: CDATA
|
---|
| 799 | Default Type: #DEFAULT
|
---|
| 800 | Value: false
|
---|
| 801 | Base Datatype: string
|
---|
| 802 | Enumeration:
|
---|
| 803 | true
|
---|
| 804 | false
|
---|
| 805 |
|
---|
| 806 | Name: note
|
---|
| 807 | Type: CDATA
|
---|
| 808 | Default Type: #IMPLIED
|
---|
| 809 | Base Datatype: string
|
---|
| 810 |
|
---|
| 811 | --------------------------------------------
|
---|
| 812 | Name: name
|
---|
| 813 | Model Type: Children
|
---|
| 814 | Create Reason: Declared
|
---|
| 815 | ContentType: All
|
---|
| 816 | Content Model: All(family,given)
|
---|
| 817 | ComplexType:
|
---|
| 818 | TypeName: ,C2
|
---|
| 819 | ContentType: All
|
---|
| 820 | --------------------------------------------
|
---|
| 821 | Name: family
|
---|
| 822 | Model Type: Simple
|
---|
| 823 | Create Reason: Declared
|
---|
| 824 | ComplexType:
|
---|
| 825 | TypeName: ,C3
|
---|
| 826 | Base Datatype: string
|
---|
| 827 | --------------------------------------------
|
---|
| 828 | Name: given
|
---|
| 829 | Model Type: Simple
|
---|
| 830 | Create Reason: Declared
|
---|
| 831 | ComplexType:
|
---|
| 832 | TypeName: ,C4
|
---|
| 833 | Base Datatype: string
|
---|
| 834 | --------------------------------------------
|
---|
| 835 | Name: email
|
---|
| 836 | Model Type: Simple
|
---|
| 837 | Create Reason: Declared
|
---|
| 838 | Base Datatype: string
|
---|
| 839 | --------------------------------------------
|
---|
| 840 | Name: url
|
---|
| 841 | Model Type: Empty
|
---|
| 842 | Create Reason: Declared
|
---|
| 843 | Content Model: EMPTY
|
---|
| 844 | ComplexType:
|
---|
| 845 | TypeName: ,C5
|
---|
| 846 | Attributes:
|
---|
| 847 | Name: href
|
---|
| 848 | Type: CDATA
|
---|
| 849 | Default Type: #DEFAULT
|
---|
| 850 | Value: http://
|
---|
| 851 | Base Datatype: string
|
---|
| 852 |
|
---|
| 853 | --------------------------------------------
|
---|
| 854 | Name: link
|
---|
| 855 | Model Type: Empty
|
---|
| 856 | Create Reason: Declared
|
---|
| 857 | Content Model: EMPTY
|
---|
| 858 | ComplexType:
|
---|
| 859 | TypeName: ,C6
|
---|
| 860 | Attributes:
|
---|
| 861 | Name: subordinates
|
---|
| 862 | Type: IDREFS
|
---|
| 863 | Default Type: #IMPLIED
|
---|
| 864 | Base Datatype: List
|
---|
| 865 |
|
---|
| 866 | Name: manager
|
---|
| 867 | Type: IDREF
|
---|
| 868 | Default Type: #IMPLIED
|
---|
| 869 | Base Datatype: IDREF
|
---|
| 870 |
|
---|
| 871 | --------------------------------------------
|
---|
| 872 | The tree just created contains: 4 elements.
|
---|
| 873 | DOMMemTest
|
---|
| 874 | Test Run Successfully
|
---|
| 875 | DOMTest
|
---|
| 876 | Test Run Successfully
|
---|
| 877 | RangeTest
|
---|
| 878 | Test Run Successfully
|
---|
| 879 | DOMTraversalTest
|
---|
| 880 | Test Run Successfully
|
---|
| 881 |
|
---|
| 882 | Usage:
|
---|
| 883 | DeprecatedDOMCount [options] <XML file | List file>
|
---|
| 884 |
|
---|
| 885 | This program invokes the DOM parser, builds the DOM tree,
|
---|
| 886 | and then prints the number of elements found in each XML file.
|
---|
| 887 |
|
---|
| 888 | Options:
|
---|
| 889 | -l Indicate the input file is a List File that has a list of xml files.
|
---|
| 890 | Default to off (Input file is an XML file).
|
---|
| 891 | -v=xxx Validation scheme [always | never | auto*].
|
---|
| 892 | -n Enable namespace processing. Defaults to off.
|
---|
| 893 | -s Enable schema processing. Defaults to off.
|
---|
| 894 | -f Enable full schema constraint checking. Defaults to off.
|
---|
| 895 | -? Show this help.
|
---|
| 896 |
|
---|
| 897 | * = Default if not provided explicitly.
|
---|
| 898 |
|
---|
| 899 | personal.xml:{timing removed}(37 elems).
|
---|
| 900 | personal.xml:{timing removed}(37 elems).
|
---|
| 901 | personal-schema.xml:{timing removed}(37 elems).
|
---|
| 902 |
|
---|
| 903 | Usage:
|
---|
| 904 | XSerializerTest [options] <XML file | List file>
|
---|
| 905 |
|
---|
| 906 | This program invokes the SAX2XMLReader, and then prints the
|
---|
| 907 | number of elements, attributes, spaces and characters found
|
---|
| 908 | in each XML file, using SAX2 API.
|
---|
| 909 |
|
---|
| 910 | Options:
|
---|
| 911 | -l Indicate the input file is a List File that has a list of xml files.
|
---|
| 912 | Default to off (Input file is an XML file).
|
---|
| 913 | -v=xxx Validation scheme [always | never | auto*].
|
---|
| 914 | -f Enable full schema constraint checking processing. Defaults to off.
|
---|
| 915 | -p Enable namespace-prefixes feature. Defaults to off.
|
---|
| 916 | -n Disable namespace processing. Defaults to on.
|
---|
| 917 | NOTE: THIS IS OPPOSITE FROM OTHER SAMPLES.
|
---|
| 918 | -s Disable schema processing. Defaults to on.
|
---|
| 919 | NOTE: THIS IS OPPOSITE FROM OTHER SAMPLES.
|
---|
| 920 | -locale=ll_CC specify the locale, default: en_US.
|
---|
| 921 | -? Show this help.
|
---|
| 922 |
|
---|
| 923 | * = Default if not provided explicitly.
|
---|
| 924 |
|
---|
| 925 | personal.xml:{timing removed}(37 elems, 12 attrs, 0 spaces, 268 chars)
|
---|
| 926 | personal.xml:{timing removed}(37 elems, 12 attrs, 134 spaces, 134 chars)
|
---|
| 927 | personal-schema.xml:{timing removed}(37 elems, 28 attrs, 0 spaces, 268 chars)
|
---|
| 928 | personal-schema.xml:{timing removed}(37 elems, 28 attrs, 140 spaces, 128 chars)
|
---|
| 929 | personal-schema.xml:{timing removed}(37 elems, 28 attrs, 140 spaces, 128 chars)
|
---|
| 930 |
|
---|
| 931 | XSValueTest Pass
|
---|
| 932 |
|
---|
| 933 | Usage:
|
---|
| 934 | InitTermTest [options] <XML file>
|
---|
| 935 |
|
---|
| 936 | This program tests the XMLPlatformUtils::Initialize()/Terminate()
|
---|
| 937 | pair by calling it a number of times.
|
---|
| 938 | Options:
|
---|
| 939 | -n Enable namespace processing. Default is off.
|
---|
| 940 | -s Enable schema processing. Default is off.
|
---|
| 941 | -f Enable full schema constraint checking. Defaults to off.
|
---|
| 942 | -? Show this help.
|
---|
| 943 |
|
---|
| 944 | 1Test Run Successfully
|
---|
| 945 | 2Test Run Successfully
|
---|
| 946 | 3Test Run Successfully
|
---|
| 947 | No input XML file specified on command line.
|
---|
| 948 | usage: ThreadTest [-v] [-threads nnn] [-time nnn] [-quiet] [-verbose] xmlfile...
|
---|
| 949 | -v=xxx Validation scheme [always | never | auto]. Default is AUTO.
|
---|
| 950 | -n Enable namespace processing. Defaults to off.
|
---|
| 951 | -s Enable schema processing. Defaults to off.
|
---|
| 952 | -f Enable full schema constraint checking. Defaults to off.
|
---|
| 953 | -parser=xxx Parser Type [dom | sax | sax2]. Default is SAX (SAX1).
|
---|
| 954 | -p Enable namespace prefixes. Defaults to off.
|
---|
| 955 | (Only used with -parser=sax2, ignored otherwise.)
|
---|
| 956 | -quiet Suppress periodic status display.
|
---|
| 957 | -verbose Display extra messages.
|
---|
| 958 | -reuse Retain and reuse parser. Default creates new for each parse.
|
---|
| 959 | -threads nnn Number of threads. Default is 2.
|
---|
| 960 | -time nnn Total time to run, in seconds. Default is forever.
|
---|
| 961 | -parses nnn Run for nnn parses instead of time. Default is to use time
|
---|
| 962 | -dump Dump DOM tree on error.
|
---|
| 963 | -mem Read files into memory once only, and parse them from there.
|
---|
| 964 | -gc Enable grammar caching (i.e. grammar cached and used in subsequent parses). Defaults to off.
|
---|
| 965 | -init Perform an initial parse of the file(s) before starting up the individual threads.
|
---|
| 966 |
|
---|
| 967 | 1Test Run Successfully
|
---|
| 968 | 2Test Run Successfully
|
---|
| 969 | 3Test Run Successfully
|
---|
| 970 | 4Test Run Successfully
|
---|
| 971 | 5Test Run Successfully
|
---|
| 972 | 6Test Run Successfully
|
---|
| 973 | 7Test Run Successfully
|
---|
| 974 | 8Test Run Successfully
|
---|
| 975 | 9Test Run Successfully
|
---|
| 976 | 10Test Run Successfully
|
---|
| 977 | 11Test Run Successfully
|
---|
| 978 | 12Test Run Successfully
|
---|
| 979 | 13Test Run Successfully
|
---|
| 980 | 14Test Run Successfully
|
---|
| 981 | 15Test Run Successfully
|
---|
| 982 |
|
---|
| 983 | Usage:
|
---|
| 984 | MemHandlerTest [options] <XML file | List file>
|
---|
| 985 |
|
---|
| 986 | This program invokes the XercesDOMParser, DOMBuilder, SAXParser ,
|
---|
| 987 | and the SAX2XMLReader, and ensures that MemoryManagers set on these
|
---|
| 988 | domBuilders are called to delete just as many bytes as they allocate.
|
---|
| 989 | This is done for each XML file, and each file is processed
|
---|
| 990 | as many times as indicated.
|
---|
| 991 | Options:
|
---|
| 992 | -l Indicate the input file is a List File that has a list of xml files.
|
---|
| 993 | Default to off (Input file is an XML file).
|
---|
| 994 | -v=xxx Validation scheme [always | never | auto*].
|
---|
| 995 | -n Enable namespace processing. Defaults to off.
|
---|
| 996 | -s Enable schema processing. Defaults to off.
|
---|
| 997 | -f Enable full schema constraint checking. Defaults to off.
|
---|
| 998 | -r=n Run file through domBuilders n times.
|
---|
| 999 | -? Show this help.
|
---|
| 1000 |
|
---|
| 1001 | * = Default if not provided explicitly.
|
---|
| 1002 |
|
---|
| 1003 | At destruction, domBuilderMemMonitor has 0 bytes.
|
---|
| 1004 | At destruction, sax2MemMonitor has 0 bytes.
|
---|
| 1005 | At destruction, depDOMMemMonitor has 0 bytes.
|
---|
| 1006 | At destruction, sax1MemMonitor has 0 bytes.
|
---|
| 1007 | At destruction, staticMemMonitor has 0 bytes.
|
---|
| 1008 | At destruction, domBuilderMemMonitor has 0 bytes.
|
---|
| 1009 | At destruction, sax2MemMonitor has 0 bytes.
|
---|
| 1010 | At destruction, depDOMMemMonitor has 0 bytes.
|
---|
| 1011 | At destruction, sax1MemMonitor has 0 bytes.
|
---|
| 1012 | At destruction, staticMemMonitor has 0 bytes.
|
---|
| 1013 | Test Run Successfully
|
---|