Global AI and Data Science

 View Only
  • 1.  extracting xml from string

    Posted Thu June 09, 2022 03:04 PM
    I am creating an API on IBM and the response body from the backend is an xml but in string format, something like this "<xml> </xml>". How can i extract the xml from the string because eventually i want to redact an element in the xml, but because it comes out as a string, I cant access it.

    ------------------------------
    Joseph Tioluwani
    ------------------------------

    #GlobalAIandDataScience
    #GlobalDataScience


  • 2.  RE: extracting xml from string

    IBM Champion
    Posted Fri June 10, 2022 02:54 AM
    I don't know what language you are using, but Enterprise COBOL provides an event-based interface that lets you parse XML documents and transform them to COBOL data structures.  https://www.ibm.com/docs/en/cobol-zos/6.2?topic=input-xml-parser-in-cobol

    ------------------------------
    Clive Harriss
    ------------------------------