Results 1 to 2 of 2

Thread: Multiple namespace xml document

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2009
    Location
    milano italy
    Posts
    307

    Default Multiple namespace xml document

    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
    Last edited by franco; 10-Mar-2015 at 06:49 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •