Hi Ajith!

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 ?

XmlBeans is correct here. The default for "elementFormDefault" is "unqualified", which means that local elements are in the empty namespace. If the <schema> element had an attribute elementFormDefault="qualified", or if the inputString element looked like <element name="inputString" form="qualified">, you would then see the inputString element have the "http://SimpleTest.org/xsd"; namespace.

--Glen

Reply via email to