Hello
I trying with 18.1 Alpha to create a XML with Multiplenamespace
looking the help Multiple Namespaces in an XML Document
: i trying to create just something like this
<r:invoice xmlns:r="http://address1/"
xmlns:xsi="http://address2/"
xmlns:ds="http://address3/"
version=1.0>
using
Code:
Get DocumentElement of hoXML to hoRoot
If not hoRoot Begin
Get CreateDocumentElementNS of hoXML "http://address1/" "r:Invoice" to hoRoot
Send AddAttributeNS of hoRoot "http://address1/" "version" "1.0"
......
after saving I have something like this
<r:invoice xmlns:r="http://address1/" version="1.0" />
but I don't know how to add the other 2 namespaces like this
xmlns:xsi="http://address2/"
xmlns:ds="http://address3/"
trying Send AddAttributeNS and AddElementNS of hoRoot or hoXML but the result is not like I want
suggestions?
regards
Franco Spinella