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.


#TechXchangePresenter
 View Only
Expand all | Collapse all

"document list" problem in xmlNodeToDocument

  • 1.  "document list" problem in xmlNodeToDocument

    Posted Tue June 27, 2006 03:51 PM

    I am trying to convert an xml string to a document by pub.xml:xmlStringtoXMLNode and pub.xml:xmlNodeToDocument.

    I set makeArrays false and giving the doctype name; however, it doesn’t give me list elements.

    what I should do? I am using version 6.1

    Shuren


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 2.  RE: "document list" problem in xmlNodeToDocument

    Posted Tue June 27, 2006 04:35 PM

    Does the structure of the document match the structure of the document type? That’s the only reason I can think of off the top of my head that would explain this behavior.


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: "document list" problem in xmlNodeToDocument

    Posted Tue June 27, 2006 04:40 PM

    Are the list elements missing, or just incorrectly formatted?


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: "document list" problem in xmlNodeToDocument

    Posted Tue June 27, 2006 04:54 PM

    Sometimes if the XML has the first line missing

    <?xml version="1.0" encoding="UTF-8"?>

    then too I have seen that it does not show the list elements

    Regards,
    Bala


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: "document list" problem in xmlNodeToDocument

    Posted Tue June 27, 2006 05:10 PM

    Are you specifying ‘isXML’ as ‘true’ in pub.xml:xmlStringtoXMLNode? Failing to do that can sometimes “flatten out” your resulting document.

    Tim


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 6.  RE: "document list" problem in xmlNodeToDocument

    Posted Tue June 27, 2006 06:47 PM

    Hi, thanks your help.

    here is the string before it covert to xmlNode, I defined isXML it ture.
    I also attached the picture of the document structure.

    so any problem you can see?

    thanks,

    Shuren

    <?xml version="1.0"?> y11 y22 y33 x11 x22 x33
    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 7.  RE: "document list" problem in xmlNodeToDocument

    Posted Tue June 27, 2006 06:49 PM

    I only get the last element, and missing structure of the document list.

    Shuren


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 8.  RE: "document list" problem in xmlNodeToDocument

    Posted Tue June 27, 2006 06:57 PM

    Yes, the structure of the document match the structure of the document type. I post the string of the document before it convert to xmlNode, also, I attach a image of the document.

    Maybe you can find something.

    thanks,

    Shuren

    <?xml version="1.0"?> y11 y22 y33 x11 x22 x33
    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 9.  RE: "document list" problem in xmlNodeToDocument

    Posted Tue June 27, 2006 07:14 PM

    I think the ‘order2’ element is causing your problem. I believe IS is seeing that as the root node, which doesn’t match up to your document type. Everything underneath is being treated as undefined data. If you create a new document type based on your XML it will have the structure you need. HTH,

    Tim


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 10.  RE: "document list" problem in xmlNodeToDocument

    Posted Tue June 27, 2006 07:26 PM

    Tim,

    You are right. I removed the root tag order2, and got the correct document structure.

    Thanks,

    Shuren


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 11.  RE: "document list" problem in xmlNodeToDocument

    Posted Tue June 27, 2006 09:08 PM

    Actually, it does not match. The order2 element is in the doc but not the doc type.

    P.S.
    Oops. Sorry. Saw Tim’s post after I posted. Never mind!


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 12.  RE: "document list" problem in xmlNodeToDocument

    Posted Tue September 19, 2006 02:07 PM

    Hi Guys,

    This post is pretty old however my query bests suits here.
    I have a bit complicated structure.( in the attached document)

    If you see the attachment the, we use documentType for converting xml to document. Now if the xml contains more than one times then the document does not create all the instances.

    Could you have any clue if I am doing it properly…

    ex. of the xml:

    <?xml version="1.0" encoding="UTF-8"?>

    <triplep_prov_ssw_change>

    XXX
    XX
    XXX
    XX
    XXX
    XXX
    XXXX
    XXX



    XXX


    XXX


    XXX
    XXX


    XXX
    XXX


    XXX
    TRUE


    XXX
    XXX


    XXX
    XXX


    XXX
    XXX




    </triplep_prov_ssw_change>

    regards,
    Sumit


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services