Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
def validating = true        // default is false
def namespaceAware = false   // default is true
new XmlParser(validating, namespaceAware).parseText(xml)

...

Code Block
new XmlParser(validating, namespaceAware).parseText(xml)

Or using the DOMBuilder as follows:

Code Block

groovy.xml.DOMBuilder.parse(new StringReader(xml), validating, namespaceAware)