Forum Discussion

julia_alexes's avatar
julia_alexes
New Contributor
12 years ago

How change XML file from Stores

I have XML file in Stores. I need change some data from it.For example: only some values that i will take from object with definite items and values.

How can i change my stored file in different tests?

4 Replies

  • Philip_Baird's avatar
    Philip_Baird
    Community Expert
    Hi Julia, I have been doing something similar for creating XML Requests to POST via an XMLHTTPRequest.



    The form I used was to parse the XML to an IXMLDOMDocument as such




    var xmlDocument = Sys.OleObject( "Msxml2.DOMDocument" );


    xmlDocument.load( Files.FileNameByName( "FileName" ) );



    then used the prescribed properties and methods on IXMLDOMDocument to access and manipulate elements as required. See:



    IXMLDOMDocument



    Also, the following may be of use, it is where I got my information from



    SmartBear XML documentation

  • Hi Phil,  thanks a lot for your post. It was very helpful fo me. But i don't understand one thing:

     Section.SetOption("Option2", aqDateTime.Now()); // Add Date/Time option 

    Is it the way to change fields in my uploaded XML file by it's name?


  • Philip_Baird's avatar
    Philip_Baird
    Community Expert

    Hi Julia, to be honest I haven't used Storages.XML as I am processing XML directly out of Oracle OSB Console so am not to sure about


    Section.SetOption("Option2", aqDateTime.Now()); // Add Date/Time option



    The XML Checkpoint Alexei indicated could be useful, here is the



    SmartBear XML Checkpoint Documentation