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.

124 lines
3.2 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: SCMPrint">
  20. <s2 title="SCMPrint">
  21. <p>SCMPrint shows how to access the Schema Content Model information.</p>
  22. <s3 title="Running SCMPrint">
  23. <p>This program parses the specified XSD file, then shows how to
  24. access the Schema Content Model information.</p>
  25. <source>
  26. Usage:
  27. SCMPrint [options] &lt;XSD file | List file&gt;
  28. This program loads XML Schema file(s), to show how one can
  29. access the Schema Content Model information.
  30. Options:
  31. -f Enable full schema constraint checking processing. Defaults to off.
  32. -l Indicate the input file is a List File that has a list of XSD files.
  33. Default to off (Input file is a XSD file).
  34. -? Show this help.
  35. </source>
  36. <p>Here is some sample output from SCMPrint (as the output is verbose
  37. it has been truncated)</p>
  38. <source>cd &XercesC3InstallDir;/samples/data
  39. SCMPrint personal.xsd
  40. ********** Printing out information from Schema **********
  41. Processing Namespace:
  42. ============================================
  43. Name: personnel
  44. Component Type: Element
  45. Content Model
  46. Type: Complex
  47. Name: C0
  48. --------------------------------------------
  49. Name: person
  50. Component Type: Element
  51. Content Model
  52. Type: Complex
  53. Name: C1
  54. --------------------------------------------
  55. Name: name
  56. Component Type: Element
  57. Content Model
  58. Type: Complex
  59. Name: C2
  60. --------------------------------------------
  61. Name: family
  62. Component Type: Element
  63. Content Model
  64. Type: Complex
  65. Name: C3
  66. --------------------------------------------
  67. Name: given
  68. Component Type: Element
  69. Content Model
  70. Type: Complex
  71. Name: C4
  72. --------------------------------------------
  73. Name: email
  74. Component Type: Element
  75. Content Model
  76. Type: Simple
  77. Name: string
  78. --------------------------------------------
  79. Name: url
  80. Component Type: Element
  81. Content Model
  82. Type: Complex
  83. Name: C5
  84. --------------------------------------------
  85. Name: link
  86. Component Type: Element
  87. Content Model
  88. Type: Complex
  89. Name: C6
  90. --------------------------------------------
  91. Processing Namespace: http://www.w3.org/2001/XMLSchema
  92. ============================================
  93. no elements
  94. Name: http://www.w3.org/2001/XMLSchema, anyType
  95. Component Type: Type Definition
  96. Category: Complex
  97. Base: anyType
  98. Content Model: (* (wildcard))
  99. ...
  100. </source>
  101. </s3>
  102. </s2>
  103. </s1>