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

Parsing XML data files using WQL

  • 1.  Parsing XML data files using WQL

    Posted Thu April 11, 2002 10:13 AM

    I have ran into a problem parsing XML documents which isn’t giving me the results I expect.

    Initially the first method of retrieving the XML/HTML documents is

    loadDocument (with the appropriate URL)
    queryDocument
    etc…

    which all works fine and the document is correctly shown in the “Variables” tab on the queryDocument flow.

    However, I run into problems when I try and parse local files in the following flow context:

    getFile
    bytesToString
    stringToDocument
    queryDocument

    Now when I run a trace nothing is loaded into the “Variables” tab on the queryDocument flow, which means I can’t parse the file - anyone got any ideas why that might be?

    (The stringToDocument appears to be working correctly because if I replace the queryDocument with documentToRecord I get the corresponding record output!?)

    Kind Regards

    Callum

    PS
    Makes no difference whether the local document is XML or HTML nothing gets displayed in the Variables tab when doing a trace.


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