Thanks to everyone that responded to my SOAP questions.
Now it's on to some XML processing.

I am having some problem understanding how to get the XMAPAppendRec()
function to work properly.
Leaving out all of the gory details , basically I have XML.map & XML.ext
files setup to allow parsing of the following xml :
<List>
        <Item>
                <ID>1</ID>
                <Name>One</Name>
        </Item>
        <Item>
                <ID>2</ID>
                <Name>Two</Name>
        </Item>
</List>

using XDOMOpen , XDOMLocate , XMAPOpen , XMAPReadNext works very well to
get the data out of the xml document.

I am trying to copy the source document to a new document using
XMAPCreate +
        St=XMAPReadNext(srcHandle,xfile,rec)
        St=XMAPAppendRec(dstHandle,xfile,rec)
This sort of works for the 1st append , XMAPToXmlDoc shows that the
result contains :
<Item>
        <ID>1</ID>
        <Name>One</Name>
</Item>
However, as you can see, there is no root node created, so appending the
second record generates a "can only have one root node" error.
I can't see how to get the document root into the result document.

Can anyone offer any pointers on this ?


Gerry
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to