AnsweredAssumed Answered

Are groovy xml processing libraries available in Boomi?

Question asked by RanjiniElamkulammana2391 on Sep 14, 2016
Latest reply on Sep 15, 2016 by 51662476

I prefer not to use JDOM

 

but something like this

 

def ts = "<testsuite/>" def ts1 = """<testsuite>  <testcase>    <foo>bar</foo>  </testcase>  <testcase>    <foo>baz</foo>  </testcase></testsuite>""".trim()  def testsuite = new XmlParser().parseText(ts) def testsuite1 = new XmlParser().parseText(ts1)  testsuite1.testcase.each {   testsuite.append(it); }  assert "bar" == testsuite.testcase[0].foo.text() assert "baz" == testsuite.testcase[1].foo.text()

Outcomes