IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

xml namespace

  • 1.  xml namespace

    Posted Fri November 20, 2009 08:51 PM

    Hello, I have a question in using the xmlnodetodocument service, specifically the nsdecls function. I have an xml document that has a name space of ns2:customer, I would like to remove the ns2 from the start of the customer string. Help would be greatly appreciated.


    #API-Management
    #webMethods
    #soa


  • 2.  RE: xml namespace

    Posted Fri November 20, 2009 09:06 PM

    When you define nsDecls parameter in the XMLNodeToXMLDocument,it will still preserve the namespace prefixes in the output document.

    So try to map the node to document output to the document that doesn’t have name space prefixes (same customer document with out ns:) and set the documentType param also.

    Another example:
    Create an other document type perhaps, exactly the same like the one with your "ns’ prefix but without this prefix and do a explicit mapping.

    ns:xxx
    —ns:yyy
    —ns:www

    to

    xxx
    —yyy
    —www

    Check this thread till end,it explains couple of other possible solutions,edit the schema:
    [URL]wmusers.com

    HTH,
    RMG


    #soa
    #API-Management
    #webMethods