In 10.1 you have the method INITIALIZE-DOCUMENT-TYPE for this purpose. I do not remember if this method was already available in 9.1E. If it is not you will not be able to create an XML Document using the 4GL DOM. I think that you will have only 4 options.
1) Upgrade to openedge 10.1B,
2) Use an external XML DOM, for instance msxml4.0
3) Use output to, and create the xml using put unformatted etc..
4) Do not use DOCTYPE in your XML.
I would not opt for number 3 since you have to take care of the special characters yourself and you will not be able to set the document encoding to UTF-8 (default). If you make a single mistake external xml parsers will not be able to read your file.
Thanks a lot for the information but I was able to make it to work in 9.1E as there was a root node which was not suppose to be created and was suppose to be used only.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.