[
https://issues.apache.org/jira/browse/XMLBEANS-288?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wing Yew Poon resolved XMLBEANS-288.
------------------------------------
Resolution: Invalid
Assignee: Radu Preotiuc-Pietro
As Radu stated, this is not a bug; the behavior is by design. Radu also
commented on the cross-posted Axis bug, which has since been closed.
Radu, please close this bug as confirmation.
> Doubled wrapper elements around XMLBeans-generated XML
> ------------------------------------------------------
>
> Key: XMLBEANS-288
> URL: https://issues.apache.org/jira/browse/XMLBEANS-288
> Project: XMLBeans
> Issue Type: Bug
> Components: Binding, Compiler, DOM, XmlObject
> Affects Versions: Version 2.1
> Environment: Windows XP, Apache Axis2 Nightly build
> Reporter: Derek Foster
> Assignee: Radu Preotiuc-Pietro
>
> This issue is a copy and slight restatement of AXIS2-1129, copied here
> because it apparently is an XMLBeans problem which has little to do with
> AXIS2 per se. Please consult AXIS2-1129 to see some of the analysis history
> and discussion of this bug, as well as a proposed workaround.
> The essence of this bug is that the following code (consisting of a generated
> Foo type parsed from an XML schema, and a generated FooDocument type which
> represents an XML document whose top-level element is a Foo instance):
> Foo foo = Foo.Factory.parse("<foo>Stuff</foo>")
> FooDocument fooDocument = FooDocument.Factory.newInstance();
> fooDocument.setFoo(foo);
> System.out.println(fooDocument.toString());
> that the output of this is similar to this:
> <foo><foo>Stuff</foo><foo>
> when it should be this:
> <foo>Stuff</foo>
> Also note that the workaround proposed in AXIS2-1129 by Dims seems to involve
> having to modify the XML schema to use qualified references to access various
> parts of itself, in ways that should be totally invisible to any
> standards-abiding XML schema parser. (It should make no difference if the
> schema uses qualified references or not if the meaning is unchanged) which
> might possibly indicate another bug.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]