Errors using XML DOM methods

ChezJfrey

New Member
I receive essentially the same error with the Initialize-Document-Type and Create-Node-Namespace:

X-NODEREF or X-DOCUMENT INITIALIZE-DOCUMENT-TYPE got an error: Method not implemented. (9082)

/* Test 1 code */
DEFINE VARIABLE xDoc AS HANDLE NO-UNDO.

CREATE X-DOCUMENT xDoc.
xDoc :INITIALIZE-DOCUMENT-TYPE("","TEST","","C:\test.dtd").

/* Test 2 code */
DEFINE VARIABLE xDoc AS HANDLE NO-UNDO.
DEFINE VARIABLE xNode AS HANDLE NO-UNDO.

CREATE X-DOCUMENT xDoc.
CREATE X-NODEREF xNode.
xDoc:CREATE-NODE-NAMESPACE(xNode, "http://www.w3.org/2000/xmlns/", "xmlns:test", "ATTRIBUTE").

I have only been marginally successful getting the simpler form, CREATE-NODE, without initializing a document type or definition file to write an XML file. The examples given in Progress kb for INITIALIZE-DOCUMENT-TYPE and CREATE-NODE-NAMESPACE do not work for me. Does anyone know why I receive this error or what I need to do differently? Does anyone know of more extensive XML documentation for Progress or have a simple example to create a namespace in an XML document? I just can't seem to get much of the XML stuff to work and I will only feel comfortable using it if I understand what is needed to employ all the methods available and both parse/write valid files.

Jeffrey
 
Top