Hi
How can I use the namespaces with CREATE-NODE().
I'd like to use XML Schema as shown in the XML document below.
<?xml version='1.0' encoding='UTF-8' ?>
<DATA xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='test.xsd'>
</DATA>
Here is the source code I tried, but it's not working !!!
create x-document hxmldoc.
create x-noderef hroot.
create x-noderef hdatasec.
hxmldoc:get-document-element(hroot).
hxmldoc:create-node(hdatasec, "DATA xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='test.xsd'":U, "ELEMENT":U).
hxmldoc:append-child(hdatasec).
Thanks
Toivo Lyytikäinen
How can I use the namespaces with CREATE-NODE().
I'd like to use XML Schema as shown in the XML document below.
<?xml version='1.0' encoding='UTF-8' ?>
<DATA xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='test.xsd'>
</DATA>
Here is the source code I tried, but it's not working !!!
create x-document hxmldoc.
create x-noderef hroot.
create x-noderef hdatasec.
hxmldoc:get-document-element(hroot).
hxmldoc:create-node(hdatasec, "DATA xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='test.xsd'":U, "ELEMENT":U).
hxmldoc:append-child(hdatasec).
Thanks
Toivo Lyytikäinen