<div dir="ltr">Hi All, <div><br></div><div>I have two different eclipse projects, using the same code. I extended XMLTooling 1.4.1 in order to have custom WS-Trust elements. </div><div><br></div><div>In project A, my XMLObject is unmarshalled as: </div>
<div><br></div><div><p style="margin:0px;font-size:11px;font-family:Monaco">        &lt;ts:ClaimType xmlns=&quot;urn:tiani-spirit:ts&quot; xmlns:ts=&quot;urn:tiani-spirit:ts&quot; xmlns:ns0=&quot;urn:tiani-spirit:ts&quot; ns0:DataType=&quot;<a href="http://www.w3.org/2001/XMLSchema#string">http://www.w3.org/2001/XMLSchema#string</a>&quot; xmlns:ns1=&quot;urn:tiani-spirit:ts&quot; ns1:name=&quot;urn:tiani-spirit:bes:2013:claims:tr-type&quot;&gt;</p>

<p style="margin:0px;font-size:11px;font-family:Monaco">            &lt;ts:ClaimValue&gt;urn:elga:trtypes:Ambulanter_Kontakt&lt;/ts:ClaimValue&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Monaco">        &lt;/ts:ClaimType&gt;</p><p style="margin:0px;font-size:11px;font-family:Monaco"><br></p></div><div>while in project B is: </div><div><br></div><div><p style="margin:0px;font-size:11px;font-family:Monaco">
   &lt;ts:ClaimType xmlns:ts=&quot;urn:tiani-spirit:ts&quot; xmlns=&quot;urn:tiani-spirit:ts&quot; DataType=&quot;<a href="http://www.w3.org/2001/XMLSchema#string">http://www.w3.org/2001/XMLSchema#string</a>&quot; name=&quot;urn:tiani-spirit:bes:2013:claims:tr-type&quot;&gt;</p>

<p style="margin:0px;font-size:11px;font-family:Monaco">            &lt;ts:ClaimValue&gt;urn:elga:trtypes:Ambulanter_Kontakt&lt;/ts:ClaimValue&gt;</p>
<p style="margin:0px;font-size:11px;font-family:Monaco">        &lt;/ts:ClaimType&gt;</p><div><br></div><div>Project A is good, since it declares a namespace for the attributes DataType and Name, while in project B such attribtues are not set. This violates this schema definition: </div>
<div><br></div><div><p style="margin:0px;font-size:11px;font-family:Monaco;color:rgb(57,51,255)"><span style="color:rgb(0,0,0)">  </span><span style="color:rgb(0,145,147)">&lt;</span><span style="color:rgb(78,145,146)">xs:element</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(147,33,146)">name</span><span style="color:rgb(0,0,0)">=</span>&quot;ClaimType&quot;<span style="color:rgb(0,0,0)"> </span><span style="color:rgb(147,33,146)">type</span><span style="color:rgb(0,0,0)">=</span>&quot;ts:ClaimTypeType&quot;<span style="color:rgb(0,145,147)">/&gt;</span></p>

<p style="margin:0px;font-size:11px;font-family:Monaco;color:rgb(57,51,255)"><span style="color:rgb(0,0,0)">    </span><span style="color:rgb(0,145,147)">&lt;</span><span style="color:rgb(78,145,146)">xs:complexType</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(147,33,146)">name</span><span style="color:rgb(0,0,0)">=</span>&quot;ClaimTypeType&quot;<span style="color:rgb(0,145,147)">&gt;</span></p>

<p style="margin:0px;font-size:11px;font-family:Monaco;color:rgb(57,51,255)"><span style="color:rgb(0,0,0)">        </span><span style="color:rgb(0,145,147)">&lt;</span><span style="color:rgb(78,145,146)">xs:attribute</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(147,33,146)">name</span><span style="color:rgb(0,0,0)">=</span>&quot;DataType&quot;<span style="color:rgb(0,0,0)"> </span><span style="color:rgb(147,33,146)">type</span><span style="color:rgb(0,0,0)">=</span>&quot;xs:anyURI&quot;<span style="color:rgb(0,0,0)"> </span><span style="color:rgb(147,33,146)">use</span><span style="color:rgb(0,0,0)">=</span>&quot;required&quot;<span style="color:rgb(0,0,0)">  </span><span style="color:rgb(0,145,147)">/&gt;</span></p>

<p style="margin:0px;font-size:11px;font-family:Monaco;color:rgb(57,51,255)"><span style="color:rgb(0,0,0)">        </span><span style="color:rgb(0,145,147)">&lt;</span><span style="color:rgb(78,145,146)">xs:attribute</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(147,33,146)">name</span><span style="color:rgb(0,0,0)">=</span>&quot;name&quot;<span style="color:rgb(0,0,0)"> </span><span style="color:rgb(147,33,146)">type</span><span style="color:rgb(0,0,0)">=</span>&quot;xs:anyURI&quot;<span style="color:rgb(0,0,0)"> </span><span style="color:rgb(147,33,146)">use</span><span style="color:rgb(0,0,0)">=</span>&quot;required&quot;<span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,145,147)">/&gt;</span></p>

<p style="margin:0px;font-size:11px;font-family:Monaco;color:rgb(78,145,146)"><span style="color:rgb(0,0,0)">    </span><span style="color:rgb(0,145,147)">&lt;/</span>xs:complexType<span style="color:rgb(0,145,147)">&gt;</span></p>
</div><div><br></div><div><br></div><div>Since the code (from project A) is the same, it must be a problem of libraries. Do you have suggestions?</div><div><br></div><div>Thanks, </div><div><br></div><div>    Massimiliano</div>
-- <br>Massimiliano Masi<br><br><a href="http://www.mascanc.net/~max">http://www.mascanc.net/~max</a>
</div><div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px; max-height:0px;" src="https://mailfoogae.appspot.com/t?sender=abWFzc2ltaWxpYW5vLm1hc2lAZ21haWwuY29t&amp;type=zerocontent&amp;guid=d7eabb40-bd84-4681-bbb6-2c7bf7096233"><font color="#ffffff" size="1">ᐧ</font></div>
</div>