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

NamespaceBuilder(Support): allow automatic detection of namespace declarations

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0-beta-1
    • Fix Version/s: 2.4.0-beta-3
    • Component/s: XML Processing
    • Labels:
      None
    • Flags:
      Patch

      Description

      NamespaceBuilder(Support) requires explicit namespace registration whereas it would be possible to detect namespace declarations from the node attributes.

      Example:
      def result = builder.outer(id: "3") {
      'ns1:innerWithNewNamespace'('xmlns:ns1': "http://foo/other", someAttr: 'someValue')

      { 'ns1:nested'("foo") }

      innerWithoutNewNamespace("bar")
      }

      Pull request with unit test will follow.

        Attachments

          Activity

            People

            • Assignee:
              melix C├ędric Champeau
              Reporter:
              mguillemot@yahoo.fr Marc Guillemot
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: