On Aug 4, 2005, at 1:59 AM, Ajith Ranabahu wrote:
Hi all,
As you all know we have been successfully using XMLBeans for data
binding in Axis2. However right now, we seem to have some problems
with XMLBeans.
1. Some schemas are not compiled right by XMLBeans.Consider the
following schema snippet.
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://SimpleTest.org/xsd">
<element name="echoString">
<complexType>
<sequence>
<element name="inputString" type="xsd:string"
nillable="true"/>
</sequence>
</complexType>
</element>
</schema>
The inputString element should belong to the targetNamespace. However
the generated EchoStringDocument has the nested inputString in the
empty Name space ?
2. The XMLBeans compiler fails to run inside Maven and Eclipse (and
even Idea :)). David Jencks has been kind enough to provide us some
good references and a code snippet but we still have some problems in
running the tool inside maven and Eclipse. However , the Ant task
works.
Any helpful hints in resolving these are welcome. I'll be sending
these to the XMLBeans list as well.
I suggest you use the xmlbeans2 maven plugin available at
http:cvs.apache.org/repository/xmlbeans/plugins/
A typical dependency element looks like
<dependency>
<groupId>xmlbeans</groupId>
<artifactId>xmlbeans-maven-plugin</artifactId>
<version>2.0.0-beta1</version>
<type>plugin</type>
</dependency>
please let me or the xmlbeans dev list know if you have any problems
with it. In particular I haven't figured out where the ant plugin
likes to put the source schemas, and I'm not sure I am duplicating that
behavior by default.
I don't know how to run xmlbeans from eclipse :-)
thanks
david jencks
Thanks
--
Ajith Ranabahu