webMethods

webMethods

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

Large Document - Root Element Attribute

  • 1.  Large Document - Root Element Attribute

    Posted Sat January 12, 2008 02:58 PM

    Hello All,

    I have read many post on large file handling.Has anybody addressed following scenario?
    I have a 400 MB XML file and wish to read Attribute of root element
    For example

    PO version=“2.0”
    If I use pub.xml:getXMLNodeIterator with PO as criteria, then pub.xml:getNextXMLNode loads entire document in memory.Is there any way to query root element attribute from streamed node without loading it into memory?
    I have tried pub.xml:queryXMLNode using XQL PO/@version.This works for small documents but for large document of 400 MB it hangs and crashes the server running on 2 GB memory allocation.
    Appreciate help on this.

    Running IS 6.1 SP2 on AIX

    Thanks,
    Puneet


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


  • 2.  RE: Large Document - Root Element Attribute

    Posted Tue January 15, 2008 05:43 AM

    What is the structure of your xml? Does your PO has the header & line relation ships with multiple line items repeating? If it is the case, process each line(detail) item with getXMLNodeIterator, and then call getNextXMLNode untill you process all the detail nodes.


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