[ 
https://issues.apache.org/jira/browse/XMLSCHEMA-39?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Kulp resolved XMLSCHEMA-39.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 2.2.1

> SchemaBuilder creates invalid attr nodes
> ----------------------------------------
>
>                 Key: XMLSCHEMA-39
>                 URL: https://issues.apache.org/jira/browse/XMLSCHEMA-39
>             Project: XmlSchema
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>            Reporter: Daniel Kulp
>            Assignee: Daniel Kulp
>             Fix For: 2.2.1
>
>
> In SchemaBuilder, when an "unknown" attribute contains a ":", it tries to 
> create an xmlns attribute for the prefix so the qname can be parsed later.   
> However, it does so via:
> {code:java}
> Attr nsAttr = attrEl.getOwnerDocument().createAttribute("xmlns:" + prefix);
>                         nsAttr.setValue(namespace);
>                         attrs.add(nsAttr);
> {code}
> which doesn't set the namespace to the xmlns namespace.   This causes 
> problems when serializing later.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to