Zsolt Kovacs created GROOVY-7576:
------------------------------------

             Summary: NamespaceBuilder does not add namespace declaration to 
the generated xml
                 Key: GROOVY-7576
                 URL: https://issues.apache.org/jira/browse/GROOVY-7576
             Project: Groovy
          Issue Type: Bug
          Components: XML Processing
    Affects Versions: 2.4.4
            Reporter: Zsolt Kovacs
            Assignee: Paul King
            Priority: Minor


The code bellow produces the same XSD, both without the xmlns:xs attribute. It 
was tested in groovy console today:
https://groovyconsole.appspot.com/edit/5161363399770112

import groovy.xml.MarkupBuilder
import groovy.xml.NamespaceBuilder

def writer  = new StringWriter()
def builder = new MarkupBuilder(writer)
def xsd     = new 
NamespaceBuilder(builder).namespace('http://www.w3.org/2001/XMLSchema', 'xs')

xsd.schema() {}
writer.toString()

xsd.schema("xmlns:xs": 'http://www.w3.org/2001/XMLSchema') {}
writer.toString()



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to