Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
16 years ago

Reading in a XML File

Hello,
I have a very large XML file 20MB and wanted to know if there is some way I could read it into a datasource.

I have to check the XML file for an occurrence of a certain element. If the file contains the element 'Program_ID', I mark the test case as Pass.

What would be the best way to do this.

Thanks

Ali

3 Replies

  • alibaba82's avatar
    alibaba82
    Super Contributor
    I tried using 2 datasources.

    1. use directory datasource first to read the xml file
    2. use xml datasource to read the imported file in XML format.

    Since the file is quite large, soapui runs out of memory.

    any way to read the file in smaller chunks ?

    Ali