Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7633

Add constructor with Map for SAXOptions to XmlSlurper

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: XML Processing
    • Labels:
      None

      Description

      It would be good if an extra contructor would be added to XmlSlurper being

      XmlSlurper(Map saxOptions = [:])

      That can lead to something more expressive than the current way of constructing options on XmlSlurper. It would also be more flexible should SAXParserFactory obtain additional setters in future releases of the JDK.

      As an example:

      new XmlSlurper(namespaceAware: true, xIncludeAware: true) 

      source: http://groovy.329449.n5.nabble.com/XmlSlurper-and-XML-includes-tp5728340.html;cid=1444931370777-216

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pascalschumacher Pascal Schumacher
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: