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

NamespaceBuilder(Support): allow automatic detection of namespace declarations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.0-beta-1
    • 2.4.0-beta-3
    • XML Processing
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: