You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@attic.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2016/04/16 07:54:25 UTC
[jira] [Closed] (ATTIC-152) Invalid xml generated for an element
with namespace uri using XmlObject/XmlCursor
[ https://issues.apache.org/jira/browse/ATTIC-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henri Yandell closed ATTIC-152.
-------------------------------
Resolution: Won't Fix
Our apologies graju256@ - the XMLBeans project has been retired and no longer has a community supporting it.
> Invalid xml generated for an element with namespace uri using XmlObject/XmlCursor
> ---------------------------------------------------------------------------------
>
> Key: ATTIC-152
> URL: https://issues.apache.org/jira/browse/ATTIC-152
> Project: Attic
> Issue Type: Bug
> Environment: JRE 1.8
> Windows
> Reporter: graju256
> Labels: XmlCursor, XmlObject
>
> // Using XmlBeans:-
> // Below code uses XmlBeans APIs to generate well-formed XML for an element with namespace URI.
> // Looks like the generated synonym to the given namespace URI seemed invalid.
> // Expected: <t1:HelloWorld xmlns:t1="http://www.w3schools.com/xml/"/>
> // Actual: <x/:HelloWorld xmlns:x/="http://www.w3schools.com/xml/"/>
> XmlObject object = XmlObject.Factory.newInstance();
> XmlCursor cursor = object.newCursor();
>
> cursor.toNextToken();
> cursor.beginElement(new QName("http://www.w3schools.com/xml/", "HelloWorld"));
> System.out.println(object.xmlText());
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)