Hi all. I noticed that XML output produced by Retrieve using TOXML command may not always produce consistent results depending on the files or dictionaries used.
For example, using the LOCATION.F demo file (created by MAKE.DEMO.FILES), I execute the following Retrieve statement several times: LIST LOCATIONS.F TOXML SAMPLE 2 Output from the first execution: <?xml version="1.0"?> <ROOT> <LOCATIONS.F LOCATION.CODE = "CCLE001" DESCRIPTION = "Cleveland State Fair Ground" PHONE = "216/965-8787" ACRES = "25" SEATS = "4000"/> <LOCATIONS.F LOCATION.CODE = "CDET001" DESCRIPTION = "Detroit State Fair Ground" PHONE = "313/774-4808" ACRES = "150" SEATS = "1000"/> </ROOT> Output from the second execution: <?xml version="1.0"?> <ROOT> <LOCATIONS.FONS.F TOXML LOCATION.CODE = "CCLE001" DESCRIPTION = "Cleveland State Fair Ground" PHONE = "216/965-8787" ACRES = "25" SEATS = "4000"/> <LOCATIONS.FONS.F TOXML LOCATION.CODE = "CDET001" DESCRIPTION = "Detroit State Fair Ground" PHONE = "313/774-4808" ACRES = "150" SEATS = "1000"/> </ROOT> Output from the third execution: <?xml version="1.0"?> <ROOT> <LOCATIONS.FLOCATIONS.F@ LOCATION.CODE = "CCLE001" DESCRIPTION = "Cleveland State Fair Ground" PHONE = "216/965-8787" ACRES = "25" SEATS = "4000"/> <LOCATIONS.FLOCATIONS.F@ LOCATION.CODE = "CDET001" DESCRIPTION = "Detroit State Fair Ground" PHONE = "313/774-4808" ACRES = "150" SEATS = "1000"/> </ROOT> As you can see, elment names "LOCATIONS.F" from the first output are now screwed up in the output from the second and third execution of the exact same Retrieve statement. I noticed this problem occurs more often in attribute centric output. Element centric output tend to be more consistent. XML Schema produced by the WITHSCHEMA does not have any problem. Is there anything I should be aware of before I start using XML in Universe? Thanks. Jason ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
