Does anyone know how to insert a Document type
<!Doctype..........> using 4GL in version 9.1E?
Thanks,
Jagninder
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.