Quick question. v9.1D Windows XP.
Writing some code to load/export XML data into/from a Db.
Question #1:
Load code works fine, reads the data in. But, it errors out when I turn on validation using the X-DOCUMENT LOAD method.
I've validated both the test XML file and its accompanying external XSD file using Altova's XML Spy. XML Spy indicates that both are well-formed and contain valid content.
Does validation work only with DTDs in v9? I'd like to be able to validate inbound XML files.
Question #2:
Export code works fine except that when I attempt to validate the resulting XML file using the Altova's XML Spy, XML Spy complains that there is no DTD. Browsers (IE) load the resulting XML just fine. It looks right.
Is there a function in v9 that will generate the DTD? Embed it in the resulting XML file? Write it as a separate DTD file? Or do I have to write code to generate DTDs?
I want to make sure that the XML data I generate will be able to pass whatever validations my recipients apply.
Thanks!
Scott
PS Any links to good examples/recipes of XML-related routines written in 4GL would be appreciated.
Writing some code to load/export XML data into/from a Db.
Question #1:
Load code works fine, reads the data in. But, it errors out when I turn on validation using the X-DOCUMENT LOAD method.
I've validated both the test XML file and its accompanying external XSD file using Altova's XML Spy. XML Spy indicates that both are well-formed and contain valid content.
Does validation work only with DTDs in v9? I'd like to be able to validate inbound XML files.
Question #2:
Export code works fine except that when I attempt to validate the resulting XML file using the Altova's XML Spy, XML Spy complains that there is no DTD. Browsers (IE) load the resulting XML just fine. It looks right.
Is there a function in v9 that will generate the DTD? Embed it in the resulting XML file? Write it as a separate DTD file? Or do I have to write code to generate DTDs?
I want to make sure that the XML data I generate will be able to pass whatever validations my recipients apply.
Thanks!
Scott
PS Any links to good examples/recipes of XML-related routines written in 4GL would be appreciated.