You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.7 KiB

  1. <?xml version="1.0" standalone="no"?>
  2. <!--
  3. * Licensed to the Apache Software Foundation (ASF) under one or more
  4. * contributor license agreements. See the NOTICE file distributed with
  5. * this work for additional information regarding copyright ownership.
  6. * The ASF licenses this file to You under the Apache License, Version 2.0
  7. * (the "License"); you may not use this file except in compliance with
  8. * the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. -->
  18. <!DOCTYPE s1 SYSTEM "sbk:/style/dtd/document.dtd">
  19. <s1 title="Sample: PSVIWriter">
  20. <s2 title="PSVIWriter">
  21. <p>PSVIWriter shows how to access the Post Schema Validation Infoset (PSVI) and Schema Component Model
  22. information for the parsed document.</p>
  23. <s3 title="Running PSVIWriter">
  24. <p>This program parses the specified XML file, then exposes
  25. the PSVI and Schema Component Model information.</p>
  26. <source>
  27. Usage:
  28. PSVIWriter [options] &lt;XML file | List file&gt;
  29. This program invokes the SAX2XMLReaderImpl, and then exposes the
  30. underlying PSVI of each parsed XML file, using SAX2 API.
  31. Options:
  32. -f Enable full schema constraint checking processing. Defaults to off.
  33. -o=xxx Output PSVI to file xxx (default is stdout)
  34. -e=xxx Output errors to file xxx (default is stdout)
  35. -u=xxx Handle unrepresentable chars [fail | rep | ref*].
  36. -x=XXX Use a particular encoding for output (UTF8*).
  37. -l Indicate the input file is a List File that has a list of xml files.
  38. Default to off (Input file is an XML file).
  39. -? Show this help.
  40. * = Default if not provided explicitly.
  41. </source>
  42. <p>Here is some sample output from PSVWriter (as the output is verbose
  43. it has been truncated)</p>
  44. <source>cd &XercesC3InstallDir;/samples/data
  45. PSVIWriter personal.xml
  46. &lt;document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  47. xmlns:psv="http://apache.org/xml/2001/PSVInfosetExtension"
  48. xmlns="http://www.w3.org/2001/05/XMLInfoset"&gt;
  49. &lt;characterEncodingScheme&gt;UTF8&lt;/characterEncodingScheme&gt;
  50. &lt;standalone xsi:nil="true"/&gt;
  51. &lt;version&gt;1.0&lt;/version&gt;
  52. &lt;children&gt;
  53. &lt;comment&gt;
  54. &lt;content&gt; @version: &lt;/content&gt;
  55. &lt;/comment&gt;
  56. ...
  57. </source>
  58. </s3>
  59. </s2>
  60. </s1>