XML Schema - Namespace

tlyytika

New Member
Hi

How can I use the namespaces with CREATE-NODE().

I'd like to use XML Schema as shown in the XML document below.

&lt?xml version='1.0' encoding='UTF-8' ?>
&ltDATA xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='test.xsd'>
&lt/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
 
Top