axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Daniels <g...@thoughtcraft.com>
Subject Re: [Axis2]Clarifications on XMLBeans
Date Thu, 04 Aug 2005 12:26:20 GMT
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

Mime
View raw message