Readme.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. GML Examples
  2. ================
  3. This directory contains sql scripts which show, by example, how to use
  4. the GML features of Spatial DataBlade. You can run any of these
  5. scripts using a SQL editor such as DB-Access, or SQLEditor on NT clients.
  6. Note: DB-Access ignores formatting characters inserted in the result,
  7. instead it inserts a newline after each 65 output characters. This
  8. algorithm clashes with the way SE_AsGML() outputs text, and the results
  9. may look garbled.
  10. XML Validation
  11. ----------------
  12. Without proper headers/trailing tags, the SE_AsGML() UDR does not produce
  13. an XML document, but just a fragment. An element in a well-formed XML
  14. document that contains SE_AsGML() output should have attributes that
  15. relate to the GML schema and other extension schema documents if
  16. applicable. You may validate the document using a schema-aware parser.
  17. The file se_asgml.xml contains GML fragments embedded in a <document>
  18. element. Here is how to use Apache Xerces-J.1.4.1 to validate this
  19. se_asgml.xml (make sure the files xerces.jar and xercesSamples.jar are in
  20. your CLASSPATH):
  21. java dom.DOMCount -v se_asgml.xml
  22. Note: the validation will generate the following error message:
  23. 'The error 'Element type "document" must be declared.'
  24. This happens because a "document" element that is not defined elsewhere
  25. is used to enclose all the GML fragments. In a real application, it will
  26. be replaced by an application-defined element.