<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-306</id>
	<title>Nabble - Xml Beans</title>
	<updated>2009-11-25T15:24:38Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Xml-Beans-f306.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Xml-Beans-f306.html" />
	<subtitle type="html">XMLBeans is a tool that allows you to access the full power of XML in a Java friendly way. It is an XML-Java binding tool. Xml Beans home is &lt;a href=&quot;http://xmlbeans.apache.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26522427</id>
	<title>[Release Candidate] XMLBeans 2.5.0-RC1</title>
	<published>2009-11-25T15:24:38Z</published>
	<updated>2009-11-25T15:24:38Z</updated>
	<author>
		<name>Cezar Andrei-3</name>
	</author>
	<content type="html">&lt;html xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:st1=&quot;urn:schemas-microsoft-com:office:smarttags&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;
&lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;PersonName&quot; /&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
st1\:*{behavior:url(#default#ieooui) }
&lt;/style&gt;
&lt;![endif]--&gt;


&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Hello everyone,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;The first release candidate for XMLBeans 2.5.0 is available
at:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;a href=&quot;http://xmlbeans.apache.org/dist/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xmlbeans.apache.org/dist/&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Please give it a try and let us know if there are any
problems with it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Thank you,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;st1:PersonName w:st=&quot;on&quot;&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;Cezar Andrei&lt;/span&gt;&lt;/font&gt;&lt;/st1:PersonName&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---User-f349.html&quot; embed=&quot;fixTarget[349]&quot; target=&quot;_top&quot; &gt;Xml Beans - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Release-Candidate--XMLBeans-2.5.0-RC1-tp26522427p26522427.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26522426</id>
	<title>[Release Candidate] XMLBeans 2.5.0-RC1</title>
	<published>2009-11-25T15:24:38Z</published>
	<updated>2009-11-25T15:24:38Z</updated>
	<author>
		<name>Cezar Andrei-3</name>
	</author>
	<content type="html">&lt;html xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:st1=&quot;urn:schemas-microsoft-com:office:smarttags&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;
&lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;PersonName&quot; /&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
st1\:*{behavior:url(#default#ieooui) }
&lt;/style&gt;
&lt;![endif]--&gt;


&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Hello everyone,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;The first release candidate for XMLBeans 2.5.0 is available
at:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;a href=&quot;http://xmlbeans.apache.org/dist/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xmlbeans.apache.org/dist/&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Please give it a try and let us know if there are any
problems with it.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Thank you,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;st1:PersonName w:st=&quot;on&quot;&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;Cezar Andrei&lt;/span&gt;&lt;/font&gt;&lt;/st1:PersonName&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;font-family:Arial'&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-Release-Candidate--XMLBeans-2.5.0-RC1-tp26522426p26522426.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26488934</id>
	<title>Couldn't find .class files in the output jar file of SchemaCompiler</title>
	<published>2009-11-23T17:03:58Z</published>
	<updated>2009-11-23T17:03:58Z</updated>
	<author>
		<name>Kanzhe Jiang</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I am using the following command in xmlbean 2.4.0 to compile a large 
&lt;br&gt;schema into java objects:
&lt;br&gt;scomp -mx &amp;quot;1536m&amp;quot; -out ~/xmlOut/output.jar -src ~/xmlOut -d ~/xmlOut 
&lt;br&gt;-verbose xmlApi.xsd &amp;gt; build.log 2&amp;gt;&amp;1
&lt;br&gt;&lt;br&gt;xmlApi.xsd includes 300+ other xsd files. The output.jar was created. 
&lt;br&gt;Its size is 95,377,307. The class files are listed in the src direct. 
&lt;br&gt;However, the package is not listed under the jar file when it is 
&lt;br&gt;expanded in eclipse. Only xsb's are listed.
&lt;br&gt;&lt;br&gt;No error was reported in build.log. I used the same command to build the 
&lt;br&gt;easyop.xsd, java objects were listed in the jar output file.
&lt;br&gt;&lt;br&gt;Am I hitting some limit in the schemaCompiler?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;kjiang
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26488934&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26488934&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---User-f349.html&quot; embed=&quot;fixTarget[349]&quot; target=&quot;_top&quot; &gt;Xml Beans - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Couldn%27t-find-.class-files-in-the-output-jar-file-of-SchemaCompiler-tp26488934p26488934.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26478611</id>
	<title>[jira] Updated: (XMLBEANS-424) XMLBeans fail to honour elements which has default attribute value as well as mandatory in schema.</title>
	<published>2009-11-23T06:03:39Z</published>
	<updated>2009-11-23T06:03:39Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;zoheb patankar updated XMLBEANS-424:
&lt;br&gt;------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Description: 
&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;Consider following schema example :-
&lt;br&gt;&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;schema xmlns=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot; targetNamespace=&amp;quot;&lt;a href=&quot;http://www.example.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.example.org/&lt;/a&gt;&amp;quot; xmlns:tns=&amp;quot;&lt;a href=&quot;http://www.example.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.example.org/&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;complexType name=&amp;quot;Employee&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;name&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;country&amp;quot; type=&amp;quot;string&amp;quot; default=&amp;quot;India&amp;quot;/&amp;gt;
&lt;br&gt;&amp;lt;/sequence&amp;gt;
&lt;br&gt;&amp;lt;/complexType&amp;gt;
&lt;br&gt;&amp;lt;element name=&amp;quot;emp&amp;quot; type=&amp;quot;tns:Employee&amp;quot;/&amp;gt; 
&lt;br&gt;&amp;lt;/schema&amp;gt;
&lt;br&gt;&lt;br&gt;From above schema i generated schema type jar and populated XMLBean object &amp;quot;EmpDocument&amp;quot; setting only the name property of it.
&lt;br&gt;The resultant xml that i got from above object contains only name element as given below:-
&lt;br&gt;&lt;br&gt;&amp;lt;emp xmlns=&amp;quot;&lt;a href=&quot;http://www.example.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.example.org/&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;name&amp;gt;zoheb&amp;lt;/name&amp;gt;
&lt;br&gt;&amp;lt;/emp&amp;gt;
&lt;br&gt;&lt;br&gt;As can be seen from generated xml it only contains &amp;quot;name&amp;quot; element skipping the&amp;quot;country&amp;quot;
&lt;br&gt;element. 
&lt;br&gt;Although i did not set the country element but xmlbean parser should honour the default attribute value defined for the country element in schema instead it skips the element if code doesnt sets it .
&lt;br&gt;&lt;br&gt;Same is the issue other way around as well i.e XML to XMLObject.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; was:
&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;Consider following schema example :-
&lt;br&gt;&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;schema xmlns=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot; targetNamespace=&amp;quot;&lt;a href=&quot;http://www.example.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.example.org/&lt;/a&gt;&amp;quot; xmlns:tns=&amp;quot;&lt;a href=&quot;http://www.example.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.example.org/&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;complexType name=&amp;quot;Employee&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;name&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;country&amp;quot; type=&amp;quot;string&amp;quot; default=&amp;quot;India&amp;quot;/&amp;gt;
&lt;br&gt;&amp;lt;/sequence&amp;gt;
&lt;br&gt;&amp;lt;/complexType&amp;gt;
&lt;br&gt;&amp;lt;element name=&amp;quot;emp&amp;quot; type=&amp;quot;tns:Employee&amp;quot;/&amp;gt; 
&lt;br&gt;&amp;lt;/schema&amp;gt;
&lt;br&gt;&lt;br&gt;From above schema i generated schema type jar and populated XMLBean object &amp;quot;EmpDocument&amp;quot; setting only the name property of it.
&lt;br&gt;The resultant xml that i got from above contains only name element as given below:-
&lt;br&gt;&lt;br&gt;&amp;lt;emp xmlns=&amp;quot;&lt;a href=&quot;http://www.example.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.example.org/&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;name&amp;gt;zoheb&amp;lt;/name&amp;gt;
&lt;br&gt;&amp;lt;/emp&amp;gt;
&lt;br&gt;&lt;br&gt;As can be seen from generated xml it only contains &amp;quot;name&amp;quot; element skipping the&amp;quot;country&amp;quot;
&lt;br&gt;element. 
&lt;br&gt;Although i did not set the country element but xmlbean parser should honour the default attribute value defined for the country element in schema instead it skips the element if code doesnt sets it .
&lt;br&gt;&lt;br&gt;Same is the issue other way around as well i.e XML to XMLObject.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; XMLBeans fail to honour elements which has default attribute value as well as mandatory in schema.
&lt;br&gt;&amp;gt; --------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XMLBEANS-424
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-424&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-424&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: XMLBeans
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: XmlObject
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: Version 2
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Windows XP,Sun solaris 2.5.1, Weblogic 9.2
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: zoheb patankar
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; Consider following schema example :-
&lt;br&gt;&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;schema xmlns=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot; targetNamespace=&amp;quot;&lt;a href=&quot;http://www.example.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.example.org/&lt;/a&gt;&amp;quot; xmlns:tns=&amp;quot;&lt;a href=&quot;http://www.example.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.example.org/&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;complexType name=&amp;quot;Employee&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;sequence&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;element name=&amp;quot;name&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;element name=&amp;quot;country&amp;quot; type=&amp;quot;string&amp;quot; default=&amp;quot;India&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/sequence&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/complexType&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;element name=&amp;quot;emp&amp;quot; type=&amp;quot;tns:Employee&amp;quot;/&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;/schema&amp;gt;
&lt;br&gt;&amp;gt; From above schema i generated schema type jar and populated XMLBean object &amp;quot;EmpDocument&amp;quot; setting only the name property of it.
&lt;br&gt;&amp;gt; The resultant xml that i got from above object contains only name element as given below:-
&lt;br&gt;&amp;gt; &amp;lt;emp xmlns=&amp;quot;&lt;a href=&quot;http://www.example.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.example.org/&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;lt;name&amp;gt;zoheb&amp;lt;/name&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/emp&amp;gt;
&lt;br&gt;&amp;gt; As can be seen from generated xml it only contains &amp;quot;name&amp;quot; element skipping the&amp;quot;country&amp;quot;
&lt;br&gt;&amp;gt; element. 
&lt;br&gt;&amp;gt; Although i did not set the country element but xmlbean parser should honour the default attribute value defined for the country element in schema instead it skips the element if code doesnt sets it .
&lt;br&gt;&amp;gt; Same is the issue other way around as well i.e XML to XMLObject.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26478611&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26478611&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XMLBEANS-424%29-XMLBeans-fail-to-honour-elements-which-has-default-attribute-value-as-well-as-mandatory-in-schema.-tp26478529p26478611.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26478529</id>
	<title>[jira] Created: (XMLBEANS-424) XMLBeans fail to honour elements which has default attribute value as well as mandatory in schema.</title>
	<published>2009-11-23T05:59:40Z</published>
	<updated>2009-11-23T05:59:40Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">XMLBeans fail to honour elements which has default attribute value as well as mandatory in schema.
&lt;br&gt;--------------------------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Key: XMLBEANS-424
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-424&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-424&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Project: XMLBeans
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Issue Type: Bug
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Components: XmlObject
&lt;br&gt;&amp;nbsp; &amp;nbsp; Affects Versions: Version 2
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Environment: Windows XP,Sun solaris 2.5.1, Weblogic 9.2
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reporter: zoheb patankar
&lt;br&gt;&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;&lt;br&gt;Consider following schema example :-
&lt;br&gt;&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;schema xmlns=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot; targetNamespace=&amp;quot;&lt;a href=&quot;http://www.example.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.example.org/&lt;/a&gt;&amp;quot; xmlns:tns=&amp;quot;&lt;a href=&quot;http://www.example.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.example.org/&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;complexType name=&amp;quot;Employee&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;sequence&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;name&amp;quot; type=&amp;quot;string&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;element name=&amp;quot;country&amp;quot; type=&amp;quot;string&amp;quot; default=&amp;quot;India&amp;quot;/&amp;gt;
&lt;br&gt;&amp;lt;/sequence&amp;gt;
&lt;br&gt;&amp;lt;/complexType&amp;gt;
&lt;br&gt;&amp;lt;element name=&amp;quot;emp&amp;quot; type=&amp;quot;tns:Employee&amp;quot;/&amp;gt; 
&lt;br&gt;&amp;lt;/schema&amp;gt;
&lt;br&gt;&lt;br&gt;From above schema i generated schema type jar and populated XMLBean object &amp;quot;EmpDocument&amp;quot; setting only the name property of it.
&lt;br&gt;The resultant xml that i got from above contains only name element as given below:-
&lt;br&gt;&lt;br&gt;&amp;lt;emp xmlns=&amp;quot;&lt;a href=&quot;http://www.example.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.example.org/&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;name&amp;gt;zoheb&amp;lt;/name&amp;gt;
&lt;br&gt;&amp;lt;/emp&amp;gt;
&lt;br&gt;&lt;br&gt;As can be seen from generated xml it only contains &amp;quot;name&amp;quot; element skipping the&amp;quot;country&amp;quot;
&lt;br&gt;element. 
&lt;br&gt;Although i did not set the country element but xmlbean parser should honour the default attribute value defined for the country element in schema instead it skips the element if code doesnt sets it .
&lt;br&gt;&lt;br&gt;Same is the issue other way around as well i.e XML to XMLObject.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26478529&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26478529&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XMLBEANS-424%29-XMLBeans-fail-to-honour-elements-which-has-default-attribute-value-as-well-as-mandatory-in-schema.-tp26478529p26478529.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26444259</id>
	<title>[jira] Issue Comment Edited: (XMLBEANS-316) NPE on complex elements with default or fixed values</title>
	<published>2009-11-20T06:33:39Z</published>
	<updated>2009-11-20T06:33:39Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12780542#action_12780542&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12780542#action_12780542&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Vladimir Shor edited comment on XMLBEANS-316 at 11/20/09 2:33 PM:
&lt;br&gt;------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;XMLBeans 2.4.0 also have this bug. 
&lt;br&gt;&lt;br&gt;Looking at the source I would rather say that the bug occurs if complexType element has mixed=true and it has only attributes. Then this line in (org.apache.xmlbeans.impl.schema.StscChecker:254 in the trunk currently, 20.nov.2009):
&lt;br&gt;&lt;br&gt;if (!model.getType().getContentModel().isSkippable())
&lt;br&gt;&lt;br&gt;throws NPE. I Guess ContentModel is not set, if element has nothing besides attributes.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; was (Author: vovencij):
&lt;br&gt;&amp;nbsp; &amp;nbsp; XMLBeans 2.4.0 also have this bug. 
&lt;br&gt;&lt;br&gt;Looking at the source I would rather say that the bug occurs if complexType element has mixed=true and it has only attributes. Then this line in (org.apache.xmlbeans.impl.schema.StscChecker:254 in the trunk &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26444259&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;currently@...&lt;/a&gt;):
&lt;br&gt;&lt;br&gt;if (!model.getType().getContentModel().isSkippable())
&lt;br&gt;&lt;br&gt;throws NPE. I Guess ContentModel is not set, if element has nothing besides attributes.
&lt;br&gt;&lt;br&gt;&amp;nbsp; 
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; NPE on complex elements with default or fixed values
&lt;br&gt;&amp;gt; ----------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XMLBEANS-316
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-316&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-316&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: XMLBeans
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: Version 2.1, Version 2.2, Version 2.2.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Sun Java 6 (build 1.6.0-b105), Linux
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Benjamin Gufler
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Radu Preotiuc-Pietro
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Compiling an XML schema which defines default or fixed values for elements with complex types leads to a NPE in StscChecker:
&lt;br&gt;&amp;gt; Exception in thread &amp;quot;main&amp;quot; java.lang.NullPointerException
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.schema.StscChecker.checkElementDefaults(StscChecker.java:206)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.schema.StscChecker.checkFields(StscChecker.java:152)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.schema.StscChecker.checkAll(StscChecker.java:67)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compileImpl(SchemaTypeSystemCompiler.java:310)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:181)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:952)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1072)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:368)
&lt;br&gt;&amp;gt; (The line numbers in this stack trace refer to xmlbeans-2.2.0, but the same error arises with 2.1.0).
&lt;br&gt;&amp;gt; Here's a minimal subset of the schema I'd like to compile which reproduces the error:
&lt;br&gt;&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;xs:schema elementFormDefault=&amp;quot;qualified&amp;quot; xmlns:xs=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;xs:element name=&amp;quot;Segment&amp;quot; type=&amp;quot;Spectrum&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;xs:complexType name=&amp;quot;Spectrum&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;gt; 			&amp;lt;xs:element minOccurs=&amp;quot;0&amp;quot; maxOccurs=&amp;quot;1&amp;quot; name=&amp;quot;SegmentType&amp;quot; type=&amp;quot;TextParam&amp;quot; default=&amp;quot;Spectrum&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;xs:complexType name=&amp;quot;TextParam&amp;quot; mixed=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;xs:attribute name=&amp;quot;name&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;/xs:attribute&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;xs:attribute name=&amp;quot;ucd&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;/xs:attribute&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/xs:schema&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26444259&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26444259&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Created%3A-%28XMLBEANS-316%29-NPE-on-complex-elements-with-default-or-fixed-values-tp9205570p26444259.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26444260</id>
	<title>[jira] Issue Comment Edited: (XMLBEANS-316) NPE on complex elements with default or fixed values</title>
	<published>2009-11-20T06:33:39Z</published>
	<updated>2009-11-20T06:33:39Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12780542#action_12780542&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12780542#action_12780542&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Vladimir Shor edited comment on XMLBEANS-316 at 11/20/09 2:32 PM:
&lt;br&gt;------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;XMLBeans 2.4.0 also have this bug. 
&lt;br&gt;&lt;br&gt;Looking at the source I would rather say that the bug occurs if complexType element has mixed=true and it has only attributes. Then this line in (org.apache.xmlbeans.impl.schema.StscChecker:254 in the trunk &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26444260&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;currently@...&lt;/a&gt;):
&lt;br&gt;&lt;br&gt;if (!model.getType().getContentModel().isSkippable())
&lt;br&gt;&lt;br&gt;throws NPE. I Guess ContentModel is not set, if element has nothing besides attributes.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; was (Author: vovencij):
&lt;br&gt;&amp;nbsp; &amp;nbsp; XMLBeans 2.4.0 also have this bug.
&lt;br&gt;&amp;nbsp; 
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; NPE on complex elements with default or fixed values
&lt;br&gt;&amp;gt; ----------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XMLBEANS-316
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-316&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-316&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: XMLBeans
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: Version 2.1, Version 2.2, Version 2.2.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Sun Java 6 (build 1.6.0-b105), Linux
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Benjamin Gufler
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Radu Preotiuc-Pietro
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Compiling an XML schema which defines default or fixed values for elements with complex types leads to a NPE in StscChecker:
&lt;br&gt;&amp;gt; Exception in thread &amp;quot;main&amp;quot; java.lang.NullPointerException
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.schema.StscChecker.checkElementDefaults(StscChecker.java:206)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.schema.StscChecker.checkFields(StscChecker.java:152)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.schema.StscChecker.checkAll(StscChecker.java:67)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compileImpl(SchemaTypeSystemCompiler.java:310)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:181)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:952)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1072)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:368)
&lt;br&gt;&amp;gt; (The line numbers in this stack trace refer to xmlbeans-2.2.0, but the same error arises with 2.1.0).
&lt;br&gt;&amp;gt; Here's a minimal subset of the schema I'd like to compile which reproduces the error:
&lt;br&gt;&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;xs:schema elementFormDefault=&amp;quot;qualified&amp;quot; xmlns:xs=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;xs:element name=&amp;quot;Segment&amp;quot; type=&amp;quot;Spectrum&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;xs:complexType name=&amp;quot;Spectrum&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;gt; 			&amp;lt;xs:element minOccurs=&amp;quot;0&amp;quot; maxOccurs=&amp;quot;1&amp;quot; name=&amp;quot;SegmentType&amp;quot; type=&amp;quot;TextParam&amp;quot; default=&amp;quot;Spectrum&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;xs:complexType name=&amp;quot;TextParam&amp;quot; mixed=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;xs:attribute name=&amp;quot;name&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;/xs:attribute&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;xs:attribute name=&amp;quot;ucd&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;/xs:attribute&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/xs:schema&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26444260&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26444260&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Created%3A-%28XMLBEANS-316%29-NPE-on-complex-elements-with-default-or-fixed-values-tp9205570p26444260.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26443055</id>
	<title>[jira] Commented: (XMLBEANS-316) NPE on complex elements with default or fixed values</title>
	<published>2009-11-20T05:11:39Z</published>
	<updated>2009-11-20T05:11:39Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12780542#action_12780542&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12780542#action_12780542&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Vladimir Shor commented on XMLBEANS-316:
&lt;br&gt;----------------------------------------
&lt;br&gt;&lt;br&gt;XMLBeans 2.4.0 also have this bug.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; NPE on complex elements with default or fixed values
&lt;br&gt;&amp;gt; ----------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XMLBEANS-316
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-316&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-316&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: XMLBeans
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: Version 2.1, Version 2.2, Version 2.2.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Sun Java 6 (build 1.6.0-b105), Linux
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Benjamin Gufler
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Radu Preotiuc-Pietro
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Compiling an XML schema which defines default or fixed values for elements with complex types leads to a NPE in StscChecker:
&lt;br&gt;&amp;gt; Exception in thread &amp;quot;main&amp;quot; java.lang.NullPointerException
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.schema.StscChecker.checkElementDefaults(StscChecker.java:206)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.schema.StscChecker.checkFields(StscChecker.java:152)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.schema.StscChecker.checkAll(StscChecker.java:67)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compileImpl(SchemaTypeSystemCompiler.java:310)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:181)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:952)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1072)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:368)
&lt;br&gt;&amp;gt; (The line numbers in this stack trace refer to xmlbeans-2.2.0, but the same error arises with 2.1.0).
&lt;br&gt;&amp;gt; Here's a minimal subset of the schema I'd like to compile which reproduces the error:
&lt;br&gt;&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;xs:schema elementFormDefault=&amp;quot;qualified&amp;quot; xmlns:xs=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;xs:element name=&amp;quot;Segment&amp;quot; type=&amp;quot;Spectrum&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;xs:complexType name=&amp;quot;Spectrum&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;xs:sequence&amp;gt;
&lt;br&gt;&amp;gt; 			&amp;lt;xs:element minOccurs=&amp;quot;0&amp;quot; maxOccurs=&amp;quot;1&amp;quot; name=&amp;quot;SegmentType&amp;quot; type=&amp;quot;TextParam&amp;quot; default=&amp;quot;Spectrum&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;/xs:sequence&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;xs:complexType name=&amp;quot;TextParam&amp;quot; mixed=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;xs:attribute name=&amp;quot;name&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;/xs:attribute&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;xs:attribute name=&amp;quot;ucd&amp;quot; type=&amp;quot;xs:string&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;/xs:attribute&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/xs:schema&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26443055&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26443055&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Created%3A-%28XMLBEANS-316%29-NPE-on-complex-elements-with-default-or-fixed-values-tp9205570p26443055.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26437079</id>
	<title>[jira] Resolved: (XMLBEANS-260) Calling SchemaType.isSkippedAnonymousType() can throw a NPE</title>
	<published>2009-11-19T17:20:39Z</published>
	<updated>2009-11-19T17:20:39Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Wing Yew Poon resolved XMLBEANS-260.
&lt;br&gt;------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Resolution: Fixed
&lt;br&gt;&amp;nbsp; &amp;nbsp; Fix Version/s: &amp;nbsp; &amp;nbsp; (was: Version 2.1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Version 2.4.1 
&lt;br&gt;&lt;br&gt;Fix should go into the next release (expected to be 2.5).
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Calling SchemaType.isSkippedAnonymousType() can throw a NPE
&lt;br&gt;&amp;gt; -----------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XMLBEANS-260
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-260&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-260&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: XMLBeans
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: XmlObject
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: Version 2.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Java 1.5, Windows XP
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Luke Peters
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Wing Yew Poon
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: Version 2.4.1 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If isSkippedAnonymousType() &amp;nbsp;is called on a SchemaType instance that does not have _outerSchemaTypeRef set, then a NPE will be thrown. Example:
&lt;br&gt;&amp;gt; &amp;nbsp; MyXmlBean myBean = MyXmlBean.Factory.newInstance();
&lt;br&gt;&amp;gt; &amp;nbsp; boolean isSkipped = myBean.schemaType().isSkippedAnonymousType(); &amp;nbsp;&amp;lt;- throws a NPE
&lt;br&gt;&amp;gt; It seems that it should return false in this instance, rather than throw an exception. All this needs to fix is to add a null check. I'm not sure which versions exactly are effected, but it is an issue in 2.1.
&lt;br&gt;&amp;gt; Current code:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; public boolean isSkippedAnonymousType()
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { return &amp;nbsp;_outerSchemaTypeRef.get().getBaseType() == this ||
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _outerSchemaTypeRef.get().getContentBasedOnType() == this; }
&lt;br&gt;&amp;gt; Potential fix:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; public boolean isSkippedAnonymousType()
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { return _outerSchemaTypeRef == null ? false : _outerSchemaTypeRef.get().getBaseType() == this ||
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _outerSchemaTypeRef.get().getContentBasedOnType() == this; }
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26437079&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26437079&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XMLBEANS-260%29-Calling-SchemaType.isSkippedAnonymousType%28%29-can-throw-a-NPE-tp3651358p26437079.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26437068</id>
	<title>[jira] Resolved: (XMLBEANS-298) Saver.entitizeAttrValue() doesn't honor SAVE_SUBSTITUTE_CHARACTERS setting</title>
	<published>2009-11-19T17:18:39Z</published>
	<updated>2009-11-19T17:18:39Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Wing Yew Poon resolved XMLBEANS-298.
&lt;br&gt;------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Resolution: Fixed
&lt;br&gt;&amp;nbsp; &amp;nbsp; Fix Version/s: Version 2.4.1 
&lt;br&gt;&lt;br&gt;The fix will go into the next release (expected to be 2.5).
&lt;br&gt;The character escaping now applies to attributes as well. Namespace declarations are not escaped.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Saver.entitizeAttrValue() doesn't honor SAVE_SUBSTITUTE_CHARACTERS setting
&lt;br&gt;&amp;gt; --------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XMLBEANS-298
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-298&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-298&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: XMLBeans
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: Version 2.2
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Niklas Mehner
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Wing Yew Poon
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: Version 2.4.1 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm formatting a XML Document using the following XMLOptions:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; XmlOptions options = new XmlOptions();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; options.setSavePrettyPrint();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; XmlOptionCharEscapeMap escapes = new XmlOptionCharEscapeMap();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; escapes.addMapping('&amp;lt;', XmlOptionCharEscapeMap.PREDEF_ENTITY);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; escapes.addMapping('&amp;gt;', XmlOptionCharEscapeMap.PREDEF_ENTITY);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; escapes.addMapping('&amp;', XmlOptionCharEscapeMap.PREDEF_ENTITY);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; escapes.addMapping('\'', XmlOptionCharEscapeMap.PREDEF_ENTITY);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; escapes.addMapping('&amp;quot;', XmlOptionCharEscapeMap.PREDEF_ENTITY);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; options.setSaveSubstituteCharacters(escapes);
&lt;br&gt;&amp;gt; This works when using content containing the escaped chars, but attribut values are not escaped:
&lt;br&gt;&amp;gt; &amp;lt;inventory&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;customer name1=&amp;quot;&amp;gt;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/inventory&amp;gt;
&lt;br&gt;&amp;gt; This should be:
&lt;br&gt;&amp;gt; &amp;lt;inventory&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;customer name1=&amp;quot;&amp;gt;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/inventory&amp;gt;
&lt;br&gt;&amp;gt; The reason for this is, that Saver.entitizeAttrValue() does not contain:
&lt;br&gt;&amp;gt; [....]
&lt;br&gt;&amp;gt; else if (isEscapedChar( ch ))
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i = replace( i, _replaceChar.getEscapedString( ch ) );
&lt;br&gt;&amp;gt; [....]
&lt;br&gt;&amp;gt; This is only done in Saver.entitizeContent().
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26437068&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26437068&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XMLBEANS-298%29-Saver.entitizeAttrValue%28%29-doesn%27t-honor-SAVE_SUBSTITUTE_CHARACTERS-setting-tp7559416p26437068.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26392005</id>
	<title>RE: AW: changeType to type with fewer element</title>
	<published>2009-11-17T07:36:33Z</published>
	<updated>2009-11-17T07:36:33Z</updated>
	<author>
		<name>Cezar Andrei-3</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:st1=&quot;urn:schemas-microsoft-com:office:smarttags&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
&lt;/style&gt;
&lt;![endif]--&gt;&lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;PersonName&quot; /&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
st1\:*{behavior:url(#default#ieooui) }
&lt;/style&gt;
&lt;![endif]--&gt;


&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Oliver,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;That&amp;#8217;s the thing, changeType does change
the schema type assigned to that node and returns a new java object of a
different class but it doesn&amp;#8217;t change the structure of the document. What you&amp;#8217;re
looking for can be done programmatically since all the info is available in the
schema types but to make it work correctly for all the type is no easy job.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Cezar &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'&gt;

&lt;div&gt;

&lt;div class=MsoNormal align=center style='text-align:center'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;

&lt;hr size=2 width=&quot;100%&quot; align=center tabindex=-1&gt;

&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'&gt;From:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;font-family:Tahoma'&gt; Oliver Pfau
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26392005&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Oliver.Pfau@...&lt;/a&gt;] &lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Sent:&lt;/span&gt;&lt;/b&gt; Tuesday, November 17, 2009
3:55 AM&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;To:&lt;/span&gt;&lt;/b&gt; &lt;st1:PersonName w:st=&quot;on&quot;&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26392005&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&lt;/st1:PersonName&gt;&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Subject:&lt;/span&gt;&lt;/b&gt; AW: changeType to type
with fewer element&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=blue face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:blue'&gt;Hi Cezar,&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=blue face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:blue'&gt;imagine the following: a complex type
&amp;quot;Top&amp;quot; is existing and an inherited complex type &amp;quot;Sub&amp;quot; from
&amp;quot;Top&amp;quot; is existing. Sub does extend Top with a string value &amp;quot;Something&amp;quot;.&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=blue face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:blue'&gt;If I do the following:&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=blue face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:blue'&gt;Top&amp;nbsp;topsub =
Top.Factory.newInstance();&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=blue face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:blue'&gt;topsub.changeType(Sub.type);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=blue face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:blue'&gt;topsub.setSomething(&amp;quot;a value only for
sub&amp;quot;);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=blue face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:blue'&gt;topsub.changeType(Top.type));&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=blue face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:blue'&gt;boolean isValid = topsub.validate();&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=blue face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:blue'&gt;isValid will be false, because topsub is
at the end of type Top but the xml output defines the something element of sub.
My expectation is that the changeType(Top.type) will cause that the something
element will be ignored and not unmarshalled to xml and validation.&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=blue face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:blue'&gt;Regards,&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=blue face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:blue'&gt;Oliver&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div class=MsoNormal align=center style='text-align:center'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span lang=DE style='font-size:12.0pt'&gt;

&lt;hr size=2 width=&quot;100%&quot; align=center tabIndex=-1&gt;

&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;

&lt;p class=MsoNormal style='margin-bottom:12.0pt'&gt;&lt;b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span lang=DE style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'&gt;Von:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span lang=DE style='font-size:10.0pt;font-family:Tahoma'&gt; &lt;st1:PersonName w:st=&quot;on&quot;&gt;Cezar Andrei&lt;/st1:PersonName&gt; [mailto:&lt;st1:PersonName w:st=&quot;on&quot;&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26392005&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cezar.andrei@...&lt;/a&gt;&lt;/st1:PersonName&gt;]
&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Gesendet:&lt;/span&gt;&lt;/b&gt; Montag, 16. November
2009 21:45&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;An:&lt;/span&gt;&lt;/b&gt; &lt;st1:PersonName w:st=&quot;on&quot;&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26392005&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&lt;/st1:PersonName&gt;&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Betreff:&lt;/span&gt;&lt;/b&gt; RE: changeType to type
with fewer element&lt;/span&gt;&lt;/font&gt;&lt;span lang=DE&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Oliver,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;I&amp;#8217;m not sure what is your question, but
you have to keep in mind that validation is run only when validate() method is
invoked. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Especially when it is structure related
operations modifying the document don&amp;#8217;t keep the document valid. Most of the
time a document has to go through a series of invalid states to become valid
again. XMLBeans&amp;#8217; user cooperation is required to attain document&amp;#8217;s validity
after modifications.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Cezar&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'&gt;

&lt;div&gt;

&lt;div class=MsoNormal align=center style='text-align:center'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;

&lt;hr size=2 width=&quot;100%&quot; align=center tabIndex=-1&gt;

&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'&gt;From:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;font-family:Tahoma'&gt; Oliver Pfau
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26392005&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Oliver.Pfau@...&lt;/a&gt;] &lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Sent:&lt;/span&gt;&lt;/b&gt; Friday, November 13, 2009
7:03 AM&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;To:&lt;/span&gt;&lt;/b&gt; &lt;st1:PersonName w:st=&quot;on&quot;&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26392005&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&lt;/st1:PersonName&gt;&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Subject:&lt;/span&gt;&lt;/b&gt; changeType to type with
fewer element&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Hi,&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;it seems that XmlBeans is generating invalid xml when I
change the type to a type with fewer elements. There is an example with
abstract conrete types on the XmlBeans homepage called
&amp;quot;AbstractTypes&amp;quot;. In the file AbstractTypes.java there is this
section:&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;...&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Circle circle = (Circle) s1.changeType(Circle.type);&lt;br&gt;
circle.setRadius(10.0);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;...&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;s1 is a shape (more common). If the type of circle is
changed to a more common type, the radius is nevertheless set for the Shape
type. The Validation of the changed circle to a Shape will fail, because the
radius is existing in the xml event though the xsi:type is correct. The xml and
the java representation seems to be here out of sync. Isn't it ? Or is there a
trick ?&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Regards,&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Oliver&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---User-f349.html&quot; embed=&quot;fixTarget[349]&quot; target=&quot;_top&quot; &gt;Xml Beans - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/changeType-to-type-with-fewer-element-tp26336255p26392005.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26390786</id>
	<title>RE: ClasscastException - XmlAnyTypeImpl cannot be cast to - Error</title>
	<published>2009-11-17T06:21:55Z</published>
	<updated>2009-11-17T06:21:55Z</updated>
	<author>
		<name>pattabi</name>
	</author>
	<content type="html">Thank you. Yes the xml input is of different schematype. Mistake was corrected by using the right schema.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Cezar Andrei-3 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;I'm not familiar with Spring Marshaller, but it seems that the source is not parsed in the schema context you expect.
&lt;br&gt;&lt;br&gt;Also you can declare your response an XmlObject and use changeType method.
&lt;br&gt;&lt;br&gt;Cezar
&lt;br&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: pattabi [mailto:Pattabiraman.Meenakshisundaram@aig.com]
&lt;br&gt;&amp;gt; Sent: Monday, November 16, 2009 10:55 AM
&lt;br&gt;&amp;gt; To: user@xmlbeans.apache.org
&lt;br&gt;&amp;gt; Subject: ClasscastException - XmlAnyTypeImpl cannot be cast to - Error
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; I searched the forum and googled but could not get a solution. hence
&lt;br&gt;&amp;gt; posting
&lt;br&gt;&amp;gt; it.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am using Spring Marshaller with xmlbeans 2.4. In the bean config file, I
&lt;br&gt;&amp;gt; am just defined the XmlbeansMarshaller with no properties set.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am accessing it this way:
&lt;br&gt;&amp;gt; ResDecisionServiceType &amp;nbsp;response = (ResDecisionServiceType)
&lt;br&gt;&amp;gt; unmarshaller.unmarshal(source);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; and am getting the following error:
&lt;br&gt;&amp;gt; org.apache.xmlbeans.impl.values.XmlAnyTypeImpl cannot be cast to
&lt;br&gt;&amp;gt; decisionserviceapp.ResDecisionServiceType.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Please help.
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/ClasscastException---&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/ClasscastException---&lt;/a&gt;&lt;br&gt;&amp;gt; XmlAnyTypeImpl-cannot-be-cast-to---Error-tp26375379p26375379.html
&lt;br&gt;&amp;gt; Sent from the Xml Beans - User mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
&lt;br&gt;&amp;gt; For additional commands, e-mail: user-help@xmlbeans.apache.org
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
&lt;br&gt;For additional commands, e-mail: user-help@xmlbeans.apache.org
&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---User-f349.html&quot; embed=&quot;fixTarget[349]&quot; target=&quot;_top&quot; &gt;Xml Beans - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ClasscastException---XmlAnyTypeImpl-cannot-be-cast-to---Error-tp26375379p26390786.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26387123</id>
	<title>AW: changeType to type with fewer element</title>
	<published>2009-11-17T01:55:28Z</published>
	<updated>2009-11-17T01:55:28Z</updated>
	<author>
		<name>Olipf</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML xmlns=&quot;http://www.w3.org/TR/REC-html40&quot; xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:st1=&quot;urn:schemas-microsoft-com:office:smarttags&quot;&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=us-ascii&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18812&quot;&gt;&lt;!--[if !mso]&gt;
&lt;STYLE&gt;v\:* {
	BEHAVIOR: url(#default#VML)
}
o\:* {
	BEHAVIOR: url(#default#VML)
}
w\:* {
	BEHAVIOR: url(#default#VML)
}
.shape {
	BEHAVIOR: url(#default#VML)
}
&lt;/STYLE&gt;
&lt;![endif]--&gt;&lt;o:SmartTagType name=&quot;PersonName&quot; namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot;&gt;&lt;/o:SmartTagType&gt;&lt;!--[if !mso]&gt;
&lt;STYLE&gt;st1\:* {
	BEHAVIOR: url(#default#ieooui)
}
&lt;/STYLE&gt;
&lt;![endif]--&gt;

&lt;/HEAD&gt;
&lt;BODY lang=EN-US link=blue vLink=purple&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Hi Cezar,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;imagine the following: a complex type &quot;Top&quot; is existing and an 
inherited complex type &quot;Sub&quot; from &quot;Top&quot; is existing. Sub does extend Top with a 
string value &quot;Something&quot;.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;If I do the following:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Top&amp;nbsp;topsub = 
Top.Factory.newInstance();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;topsub.changeType(Sub.type);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;topsub&lt;/FONT&gt;&lt;/SPAN&gt;.setSomething(&quot;a value only for 
sub&quot;);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;topsub&lt;/FONT&gt;&lt;/SPAN&gt;.changeType(Top.type));&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;boolean isValid = &lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;topsub&lt;/FONT&gt;&lt;/SPAN&gt;.validate();&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;isValid will be false, because topsub is at the end of type 
Top but the xml output defines the something element of sub. My expectation is 
that the changeType(Top.type) will cause that the something element will be 
ignored and not unmarshalled to xml and validation.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Regards,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;Oliver&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV dir=ltr align=left&gt;&lt;SPAN class=802454909-17112009&gt;&lt;FONT color=#0000ff size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR&gt;
&lt;DIV dir=ltr lang=de class=OutlookMessageHeader align=left&gt;
&lt;HR tabIndex=-1&gt;
&lt;FONT size=2 face=Tahoma&gt;&lt;B&gt;Von:&lt;/B&gt; Cezar Andrei 
[mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26387123&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cezar.andrei@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;Gesendet:&lt;/B&gt; Montag, 16. November 2009 
21:45&lt;BR&gt;&lt;B&gt;An:&lt;/B&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26387123&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&lt;BR&gt;&lt;B&gt;Betreff:&lt;/B&gt; RE: changeType 
to type with fewer element&lt;BR&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV class=Section1&gt;
&lt;P class=MsoNormal&gt;&lt;FONT color=navy size=2 face=Arial&gt;&lt;SPAN style=&quot;FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt&quot;&gt;Oliver,&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;FONT color=navy size=2 face=Arial&gt;&lt;SPAN style=&quot;FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;FONT color=navy size=2 face=Arial&gt;&lt;SPAN style=&quot;FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt&quot;&gt;I&amp;#8217;m not sure what is 
your question, but you have to keep in mind that validation is run only when 
validate() method is invoked. &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;FONT color=navy size=2 face=Arial&gt;&lt;SPAN style=&quot;FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt&quot;&gt;Especially when it is 
structure related operations modifying the document don&amp;#8217;t keep the document 
valid. Most of the time a document has to go through a series of invalid states 
to become valid again. XMLBeans&amp;#8217; user cooperation is required to attain 
document&amp;#8217;s validity after modifications.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;FONT color=navy size=2 face=Arial&gt;&lt;SPAN style=&quot;FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;FONT color=navy size=2 face=Arial&gt;&lt;SPAN style=&quot;FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt&quot;&gt;Cezar&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal&gt;&lt;FONT color=navy size=2 face=Arial&gt;&lt;SPAN style=&quot;FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV style=&quot;BORDER-BOTTOM: medium none; BORDER-LEFT: blue 1.5pt solid; PADDING-BOTTOM: 0in; PADDING-LEFT: 4pt; PADDING-RIGHT: 0in; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0in&quot;&gt;
&lt;DIV&gt;
&lt;DIV style=&quot;TEXT-ALIGN: center&quot; class=MsoNormal align=center&gt;&lt;FONT size=3 face=&quot;Times New Roman&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 12pt&quot;&gt;
&lt;HR tabIndex=-1 align=center SIZE=2 width=&quot;100%&quot;&gt;
&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&lt;B&gt;&lt;FONT size=2 face=Tahoma&gt;&lt;SPAN style=&quot;FONT-FAMILY: Tahoma; FONT-SIZE: 10pt; FONT-WEIGHT: bold&quot;&gt;From:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;FONT size=2 face=Tahoma&gt;&lt;SPAN style=&quot;FONT-FAMILY: Tahoma; FONT-SIZE: 10pt&quot;&gt; Oliver 
Pfau [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26387123&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Oliver.Pfau@...&lt;/a&gt;] &lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Sent:&lt;/SPAN&gt;&lt;/B&gt; Friday, November 13, 2009 7:03 
AM&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;To:&lt;/SPAN&gt;&lt;/B&gt; &lt;st1:PersonName w:st=&quot;on&quot;&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26387123&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&lt;/st1:PersonName&gt;&lt;BR&gt;&lt;B&gt;&lt;SPAN style=&quot;FONT-WEIGHT: bold&quot;&gt;Subject:&lt;/SPAN&gt;&lt;/B&gt; changeType to type with fewer 
element&lt;/SPAN&gt;&lt;/FONT&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;P class=MsoNormal&gt;&lt;FONT size=3 face=&quot;Times New Roman&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 12pt&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;P class=MsoNormal&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;Hi,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P class=MsoNormal&gt;&lt;FONT size=3 face=&quot;Times New Roman&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 12pt&quot;&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P class=MsoNormal&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;it seems that XmlBeans is generating 
invalid xml when I change the type to a type with fewer elements. There is an 
example with abstract conrete types on the XmlBeans homepage called 
&quot;AbstractTypes&quot;. In the file AbstractTypes.java there is this 
section:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P class=MsoNormal&gt;&lt;FONT size=3 face=&quot;Times New Roman&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 12pt&quot;&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P class=MsoNormal&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P class=MsoNormal&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;Circle circle = (Circle) 
s1.changeType(Circle.type);&lt;BR&gt;circle.setRadius(10.0);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P class=MsoNormal&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P class=MsoNormal&gt;&lt;FONT size=3 face=&quot;Times New Roman&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 12pt&quot;&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P class=MsoNormal&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;s1 is a shape (more common). If the 
type of circle is changed to a more common type, the radius is nevertheless set 
for the Shape type. The Validation of the changed circle to a Shape will fail, 
because the radius is existing in the xml event though the xsi:type is correct. 
The xml and the java representation seems to be here out of sync. Isn't it ? Or 
is there a trick ?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P class=MsoNormal&gt;&lt;FONT size=3 face=&quot;Times New Roman&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 12pt&quot;&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P class=MsoNormal&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;Regards,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P class=MsoNormal&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;Oliver&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P class=MsoNormal&gt;&lt;FONT size=2 face=Arial&gt;&lt;SPAN style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---User-f349.html&quot; embed=&quot;fixTarget[349]&quot; target=&quot;_top&quot; &gt;Xml Beans - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/changeType-to-type-with-fewer-element-tp26336255p26387123.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26379185</id>
	<title>RE: changeType to type with fewer element</title>
	<published>2009-11-16T12:45:11Z</published>
	<updated>2009-11-16T12:45:11Z</updated>
	<author>
		<name>Cezar Andrei-3</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:st1=&quot;urn:schemas-microsoft-com:office:smarttags&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
&lt;/style&gt;
&lt;![endif]--&gt;&lt;o:SmartTagType namespaceuri=&quot;urn:schemas-microsoft-com:office:smarttags&quot; name=&quot;PersonName&quot; /&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
st1\:*{behavior:url(#default#ieooui) }
&lt;/style&gt;
&lt;![endif]--&gt;


&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Oliver,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;I&amp;#8217;m not sure what is your question, but
you have to keep in mind that validation is run only when validate() method is
invoked. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Especially when it is structure related operations
modifying the document don&amp;#8217;t keep the document valid. Most of the time a
document has to go through a series of invalid states to become valid again. XMLBeans&amp;#8217;
user cooperation is required to attain document&amp;#8217;s validity after modifications.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Cezar&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'&gt;

&lt;div&gt;

&lt;div class=MsoNormal align=center style='text-align:center'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;

&lt;hr size=2 width=&quot;100%&quot; align=center tabindex=-1&gt;

&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'&gt;From:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;font-family:Tahoma'&gt; Oliver Pfau [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26379185&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Oliver.Pfau@...&lt;/a&gt;]
&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Sent:&lt;/span&gt;&lt;/b&gt; Friday, November 13, 2009
7:03 AM&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;To:&lt;/span&gt;&lt;/b&gt; &lt;st1:PersonName w:st=&quot;on&quot;&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26379185&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;&lt;/st1:PersonName&gt;&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Subject:&lt;/span&gt;&lt;/b&gt; changeType to type with
fewer element&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Hi,&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;it seems that XmlBeans is generating invalid xml when I
change the type to a type with fewer elements. There is an example with
abstract conrete types on the XmlBeans homepage called
&amp;quot;AbstractTypes&amp;quot;. In the file AbstractTypes.java there is this section:&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;...&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Circle circle = (Circle) s1.changeType(Circle.type);&lt;br&gt;
circle.setRadius(10.0);&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;...&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;s1 is a shape (more common). If the type of circle is
changed to a more common type, the radius is nevertheless set for the Shape
type. The Validation of the changed circle to a Shape will fail, because the
radius is existing in the xml event though the xsi:type is correct. The xml and
the java representation seems to be here out of sync. Isn't it ? Or is there a
trick ?&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Regards,&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;Oliver&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 face=Arial&gt;&lt;span style='font-size:10.0pt;
font-family:Arial'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---User-f349.html&quot; embed=&quot;fixTarget[349]&quot; target=&quot;_top&quot; &gt;Xml Beans - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/changeType-to-type-with-fewer-element-tp26336255p26379185.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26378994</id>
	<title>RE: ClasscastException - XmlAnyTypeImpl cannot be cast to - Error</title>
	<published>2009-11-16T12:31:33Z</published>
	<updated>2009-11-16T12:31:33Z</updated>
	<author>
		<name>Cezar Andrei-3</name>
	</author>
	<content type="html">I'm not familiar with Spring Marshaller, but it seems that the source is not parsed in the schema context you expect.
&lt;br&gt;&lt;br&gt;Also you can declare your response an XmlObject and use changeType method.
&lt;br&gt;&lt;br&gt;Cezar
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: pattabi [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378994&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Pattabiraman.Meenakshisundaram@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Monday, November 16, 2009 10:55 AM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378994&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: ClasscastException - XmlAnyTypeImpl cannot be cast to - Error
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; I searched the forum and googled but could not get a solution. hence
&lt;br&gt;&amp;gt; posting
&lt;br&gt;&amp;gt; it.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am using Spring Marshaller with xmlbeans 2.4. In the bean config file, I
&lt;br&gt;&amp;gt; am just defined the XmlbeansMarshaller with no properties set.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am accessing it this way:
&lt;br&gt;&amp;gt; ResDecisionServiceType &amp;nbsp;response = (ResDecisionServiceType)
&lt;br&gt;&amp;gt; unmarshaller.unmarshal(source);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; and am getting the following error:
&lt;br&gt;&amp;gt; org.apache.xmlbeans.impl.values.XmlAnyTypeImpl cannot be cast to
&lt;br&gt;&amp;gt; decisionserviceapp.ResDecisionServiceType.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Please help.
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/ClasscastException---&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/ClasscastException---&lt;/a&gt;&lt;br&gt;&amp;gt; XmlAnyTypeImpl-cannot-be-cast-to---Error-tp26375379p26375379.html
&lt;br&gt;&amp;gt; Sent from the Xml Beans - User mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378994&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378994&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378994&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26378994&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---User-f349.html&quot; embed=&quot;fixTarget[349]&quot; target=&quot;_top&quot; &gt;Xml Beans - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ClasscastException---XmlAnyTypeImpl-cannot-be-cast-to---Error-tp26375379p26378994.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26375379</id>
	<title>ClasscastException - XmlAnyTypeImpl cannot be cast to - Error</title>
	<published>2009-11-16T08:55:08Z</published>
	<updated>2009-11-16T08:55:08Z</updated>
	<author>
		<name>pattabi</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I searched the forum and googled but could not get a solution. hence posting it.
&lt;br&gt;&lt;br&gt;I am using Spring Marshaller with xmlbeans 2.4. In the bean config file, I am just defined the XmlbeansMarshaller with no properties set.
&lt;br&gt;&lt;br&gt;I am accessing it this way:
&lt;br&gt;ResDecisionServiceType &amp;nbsp;response = (ResDecisionServiceType) unmarshaller.unmarshal(source);
&lt;br&gt;&lt;br&gt;and am getting the following error:
&lt;br&gt;org.apache.xmlbeans.impl.values.XmlAnyTypeImpl cannot be cast to decisionserviceapp.ResDecisionServiceType. 
&lt;br&gt;&lt;br&gt;Please help.
&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---User-f349.html&quot; embed=&quot;fixTarget[349]&quot; target=&quot;_top&quot; &gt;Xml Beans - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ClasscastException---XmlAnyTypeImpl-cannot-be-cast-to---Error-tp26375379p26375379.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26336255</id>
	<title>changeType to type with fewer element</title>
	<published>2009-11-13T05:03:25Z</published>
	<updated>2009-11-13T05:03:25Z</updated>
	<author>
		<name>Olipf</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META content=&quot;text/html; charset=us-ascii&quot; http-equiv=Content-Type&gt;
&lt;META name=GENERATOR content=&quot;MSHTML 8.00.6001.18812&quot;&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV&gt;&lt;SPAN class=218265412-13112009&gt;&lt;FONT size=2 face=Arial&gt;Hi,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=218265412-13112009&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=218265412-13112009&gt;&lt;FONT size=2 face=Arial&gt;it seems that 
XmlBeans is generating invalid xml when I change the type to a type with fewer 
elements. There is an example with abstract conrete types on the XmlBeans 
homepage called &quot;AbstractTypes&quot;. In the file AbstractTypes.java there is this 
section:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=218265412-13112009&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=218265412-13112009&gt;&lt;FONT size=2 face=Arial&gt;...&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=218265412-13112009&gt;&lt;FONT size=2 face=Arial&gt;Circle circle = 
(Circle) 
s1.changeType(Circle.type);&lt;BR&gt;circle.setRadius(10.0);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=218265412-13112009&gt;&lt;FONT size=2 face=Arial&gt;...&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=218265412-13112009&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=218265412-13112009&gt;&lt;FONT size=2 face=Arial&gt;s1 is a shape (more 
common). If the type of circle is changed to a more common type, the radius is 
nevertheless set for the Shape type. The Validation of the changed circle to a 
Shape will fail, because the radius is existing in the xml event though the 
xsi:type is correct. The xml and the java representation seems to be here out of 
sync. Isn't it ? Or is there a trick ?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=218265412-13112009&gt;&lt;FONT size=2 face=Arial&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=218265412-13112009&gt;&lt;FONT size=2 face=Arial&gt;Regards,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN class=218265412-13112009&gt;&lt;FONT size=2 face=Arial&gt;Oliver&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---User-f349.html&quot; embed=&quot;fixTarget[349]&quot; target=&quot;_top&quot; &gt;Xml Beans - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/changeType-to-type-with-fewer-element-tp26336255p26336255.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26330598</id>
	<title>[jira] Resolved: (XMLBEANS-162) NPE during schema compilation with extension</title>
	<published>2009-11-12T19:08:39Z</published>
	<updated>2009-11-12T19:08:39Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Radu Preotiuc-Pietro resolved XMLBEANS-162.
&lt;br&gt;-------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Resolution: Fixed
&lt;br&gt;&amp;nbsp; &amp;nbsp; Fix Version/s: Version 2.4 
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; NPE during schema compilation with extension
&lt;br&gt;&amp;gt; --------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XMLBEANS-162
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-162&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-162&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: XMLBeans
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Compiler
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: Version 2 Beta 1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Harald Meyer
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Jacob Danner
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: Version 2.4 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When no extensions are used, everything works fine. Stack trace:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [java] Exception in thread &amp;quot;main&amp;quot; java.lang.NullPointerException
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [java] 	at org.apache.xmlbeans.impl.config.BindingConfigImpl.error(BindingConfigImpl.java:289)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [java] 	at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateJava(InterfaceExtensionImpl.java:91)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [java] 	at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateInterface(InterfaceExtensionImpl.java:66)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [java] 	at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.newInstance(InterfaceExtensionImpl.java:38)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [java] 	at org.apache.xmlbeans.impl.config.BindingConfigImpl.recordExtensionSetting(BindingConfigImpl.java:234)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [java] 	at org.apache.xmlbeans.impl.config.BindingConfigImpl.&amp;lt;init&amp;gt;(BindingConfigImpl.java:109)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [java] 	at org.apache.xmlbeans.impl.config.BindingConfigImpl.forConfigDocuments(BindingConfigImpl.java:69)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [java] 	at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:939)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [java] 	at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1067)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [java] 	at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:367)
&lt;br&gt;&amp;gt; From my understanding, XMLBeans tries to report an error message, but the StscStack (what ever it is) is empty.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26330598&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26330598&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XMLBEANS-162%29-NPE-during-schema-compilation-with-extension-tp150295p26330598.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26330379</id>
	<title>[jira] Resolved: (XMLBEANS-310) XmlObject.substitute() does not work when XMLBeans are used in conujunction with AXIS2 and run in a servlet container. Other operations might be affected by this as well.</title>
	<published>2009-11-12T18:40:39Z</published>
	<updated>2009-11-12T18:40:39Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Radu Preotiuc-Pietro resolved XMLBEANS-310.
&lt;br&gt;-------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Resolution: Won't Fix
&lt;br&gt;&amp;nbsp; &amp;nbsp; Fix Version/s: unspecified
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; XmlObject.substitute() does not work when XMLBeans are used in conujunction with AXIS2 and run in a servlet container. Other operations might be affected by this as well.
&lt;br&gt;&amp;gt; --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XMLBEANS-310
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-310&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-310&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: XMLBeans
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: XmlObject
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: AXIS2 version 1.1
&lt;br&gt;&amp;gt; Tomcat version 5.5
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Severin Ecker
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: unspecified
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; In situations where, at runtime, a compiled schema for an XML element (XML type name) is being looked for (this happens e.g. when the XmlObject.substitute() operation is invoked) a resource is loaded via Classloader.getResourceAsStream() (see SchemaTypeLoaderImpl.java)
&lt;br&gt;&amp;gt; The problem is, that the Classloader of the current thread ('Thread.currentThread.getContextClassLoader();) is used instead the Classloader of an already loaded class (e.g.: classname.class.getClassLoader()).
&lt;br&gt;&amp;gt; This implementation works as long as it is not used within an AXIS2 service. In this case all classes and resources are located in an .aar archive. At load time this file is in the classpath and the XML-schemas and compiled classes are found. But, later when a service operation is invoked, the classloader retrieved with 'Thread.currentThread().getContextClassLoader() is of type WebappClassLoader instead of org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl. And this WebappClassLoader does NOT look within the .aar file for the schema, therefore substitude does not have the correct types available at runtime.
&lt;br&gt;&amp;gt; Oh and, there is also no error message in this case stating that a class couldn't be found/loaded!
&lt;br&gt;&amp;gt; Our workaround to this problem ATM is, setting the thread's contextClassLoader to be the class loader of a class contained in our web application, first thing each time an operation of our webservice is invoked. But a fix to this problem would of course be highly appreciated!
&lt;br&gt;&amp;gt; ps.: I will also crosspost this bugreport in AXIS2 since this problem is closely related to AXIS2, which probobably should hand down a better suited class loader.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26330379&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26330379&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XMLBEANS-310%29-XmlObject.substitute%28%29-does-not-work-when-XMLBeans-are-used-in-conujunction-with-AXIS2-and-run-in-a-servlet-container.-Other-operations-might-be-affected-by-this-as-well.-tp8502362p26330379.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26330214</id>
	<title>[jira] Resolved: (XMLBEANS-334) No access to content for mixed complexType containing an empty choice only</title>
	<published>2009-11-12T18:24:39Z</published>
	<updated>2009-11-12T18:24:39Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Radu Preotiuc-Pietro resolved XMLBEANS-334.
&lt;br&gt;-------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Resolution: Invalid
&lt;br&gt;&amp;nbsp; &amp;nbsp; Fix Version/s: unspecified
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; No access to content for mixed complexType containing an empty choice only
&lt;br&gt;&amp;gt; --------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XMLBEANS-334
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-334&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-334&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: XMLBeans
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Compiler
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: Version 2.2, &amp;nbsp;Version 2.3
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Johannes Stamminger
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Trivial
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fix For: unspecified
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Within a small example that I will attach in a minute there is defined an element Title:
&lt;br&gt;&amp;gt; 	&amp;lt;xs:element name=&amp;quot;Title&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;xs:complexType mixed=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 			&amp;lt;xs:choice minOccurs=&amp;quot;0&amp;quot; maxOccurs=&amp;quot;unbounded&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;gt; The generated sourcecode &amp;nbsp;for interface Title within XBTitleDocument (all xmlbeans generated classes were created with XB prefix by way of xsdconfig) does extend from org.apache.xmlbeans.XmlObject and contain nothing else than the static org.apache.xmlbeans.SchemaType member. Especially it does not provide access to the string content of the element.
&lt;br&gt;&amp;gt; Though the generated implementation TitleImpl in XBTitleDocumentImpl does provide access as it
&lt;br&gt;&amp;gt; &amp;nbsp;-&amp;gt; derives from org.apache.xmlbeans.impl.values.XmlComplexContentImpl 
&lt;br&gt;&amp;gt; &amp;nbsp;-&amp;gt; deriving from XmlObjectBase
&lt;br&gt;&amp;gt; &amp;nbsp;-&amp;gt; granting access to that value by way of method getStringValue()
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26330214&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26330214&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XMLBEANS-334%29-No-access-to-content-for-mixed-complexType-containing-an-empty-choice-only-tp11030107p26330214.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26330192</id>
	<title>[jira] Commented: (XMLBEANS-334) No access to content for mixed complexType containing an empty choice only</title>
	<published>2009-11-12T18:22:39Z</published>
	<updated>2009-11-12T18:22:39Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12777337#action_12777337&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12777337#action_12777337&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Radu Preotiuc-Pietro commented on XMLBEANS-334:
&lt;br&gt;-----------------------------------------------
&lt;br&gt;&lt;br&gt;Well, the thing is that, since you can have many children elements under the &amp;quot;Title&amp;quot; element and text interspersed with them, you would need a way to see what is the relative position of all the text fragments with respect to each child element. You would use XmlCursor for that.
&lt;br&gt;&lt;br&gt;See the MixedContent sample.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; No access to content for mixed complexType containing an empty choice only
&lt;br&gt;&amp;gt; --------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XMLBEANS-334
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-334&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-334&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: XMLBeans
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Compiler
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: Version 2.2, &amp;nbsp;Version 2.3
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Johannes Stamminger
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Trivial
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Within a small example that I will attach in a minute there is defined an element Title:
&lt;br&gt;&amp;gt; 	&amp;lt;xs:element name=&amp;quot;Title&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;xs:complexType mixed=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 			&amp;lt;xs:choice minOccurs=&amp;quot;0&amp;quot; maxOccurs=&amp;quot;unbounded&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;/xs:complexType&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;/xs:element&amp;gt;
&lt;br&gt;&amp;gt; The generated sourcecode &amp;nbsp;for interface Title within XBTitleDocument (all xmlbeans generated classes were created with XB prefix by way of xsdconfig) does extend from org.apache.xmlbeans.XmlObject and contain nothing else than the static org.apache.xmlbeans.SchemaType member. Especially it does not provide access to the string content of the element.
&lt;br&gt;&amp;gt; Though the generated implementation TitleImpl in XBTitleDocumentImpl does provide access as it
&lt;br&gt;&amp;gt; &amp;nbsp;-&amp;gt; derives from org.apache.xmlbeans.impl.values.XmlComplexContentImpl 
&lt;br&gt;&amp;gt; &amp;nbsp;-&amp;gt; deriving from XmlObjectBase
&lt;br&gt;&amp;gt; &amp;nbsp;-&amp;gt; granting access to that value by way of method getStringValue()
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26330192&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26330192&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XMLBEANS-334%29-No-access-to-content-for-mixed-complexType-containing-an-empty-choice-only-tp11030107p26330192.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26293870</id>
	<title>[jira] Commented: (XMLBEANS-423) Extra semi-colon in SchemaTypeCodePrinter changes apparent semantics of 'if' statement</title>
	<published>2009-11-10T16:16:27Z</published>
	<updated>2009-11-10T16:16:27Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12776185#action_12776185&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12776185#action_12776185&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Radu Preotiuc-Pietro commented on XMLBEANS-423:
&lt;br&gt;-----------------------------------------------
&lt;br&gt;&lt;br&gt;That does make a lot of sense, to remove the semicolon.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Extra semi-colon in SchemaTypeCodePrinter changes apparent semantics of 'if' statement
&lt;br&gt;&amp;gt; --------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XMLBEANS-423
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-423&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-423&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: XMLBeans
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Compiler
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: Version 2.4 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Josh Micich
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; See line 807:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://svn.apache.org/viewvc/xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java?annotate=799073&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java?annotate=799073&lt;/a&gt;&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26293870&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26293870&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XMLBEANS-423%29-Extra-semi-colon-in-SchemaTypeCodePrinter-changes-apparent-semantics-of-%27if%27-statement-tp26291399p26293870.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26291399</id>
	<title>[jira] Created: (XMLBEANS-423) Extra semi-colon in SchemaTypeCodePrinter changes apparent semantics of 'if' statement</title>
	<published>2009-11-10T13:21:28Z</published>
	<updated>2009-11-10T13:21:28Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">Extra semi-colon in SchemaTypeCodePrinter changes apparent semantics of 'if' statement
&lt;br&gt;--------------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Key: XMLBEANS-423
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-423&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-423&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Project: XMLBeans
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Issue Type: Bug
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Components: Compiler
&lt;br&gt;&amp;nbsp; &amp;nbsp; Affects Versions: Version 2.4 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reporter: Josh Micich
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Priority: Minor
&lt;br&gt;&lt;br&gt;&lt;br&gt;See line 807:
&lt;br&gt;&lt;a href=&quot;http://svn.apache.org/viewvc/xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java?annotate=799073&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java?annotate=799073&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26291399&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26291399&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XMLBEANS-423%29-Extra-semi-colon-in-SchemaTypeCodePrinter-changes-apparent-semantics-of-%27if%27-statement-tp26291399p26291399.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26280241</id>
	<title>[jira] Created: (XMLBEANS-422) org.apache.xmlbeans.XmlException: error: Unexpected end of file while parsing xml-document</title>
	<published>2009-11-10T01:04:28Z</published>
	<updated>2009-11-10T01:04:28Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">org.apache.xmlbeans.XmlException: error: Unexpected end of file while parsing xml-document
&lt;br&gt;------------------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Key: XMLBEANS-422
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-422&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-422&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Project: XMLBeans
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Issue Type: Bug
&lt;br&gt;&amp;nbsp; &amp;nbsp; Affects Versions: Version 2.4 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Environment: OS UNIX - AIX
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reporter: Matthias Weidinger
&lt;br&gt;&lt;br&gt;&lt;br&gt;The random error occurs during parsing a xml -document. It first occured while using version 2.2.0 and after changing to 2.4 there is still the same problem.
&lt;br&gt;&lt;br&gt;ByteArrayInputStream inputStream = new ByteArrayInputStream(content);
&lt;br&gt;&amp;nbsp;xmlObject = XmlObject.Factory.parse(inputStream);
&lt;br&gt;&lt;br&gt;Is there a version available that is not affected by this problem?
&lt;br&gt;&lt;br&gt;thx in advance
&lt;br&gt;&lt;br&gt;Matthias Weidinger
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26280241&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26280241&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XMLBEANS-422%29-org.apache.xmlbeans.XmlException%3A-error%3A-Unexpected-end-of-file-while-parsing-xml-document-tp26280241p26280241.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26202189</id>
	<title>[jira] Commented: (XMLBEANS-421) Link to XMLBeans Samples on Getting Started is dead</title>
	<published>2009-11-04T10:37:32Z</published>
	<updated>2009-11-04T10:37:32Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773598#action_12773598&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773598#action_12773598&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Wing Yew Poon commented on XMLBEANS-421:
&lt;br&gt;----------------------------------------
&lt;br&gt;&lt;br&gt;I think we can change the link to &lt;a href=&quot;http://xmlbeans.apache.org/samples/index.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xmlbeans.apache.org/samples/index.html&lt;/a&gt;&amp;nbsp;then.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Link to XMLBeans Samples on Getting Started is dead
&lt;br&gt;&amp;gt; ---------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XMLBEANS-421
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-421&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-421&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: XMLBeans
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: unspecified
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Hayo
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; See
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://xmlbeans.apache.org/docs/2.0.0/guide/conGettingStartedwithXMLBeans.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xmlbeans.apache.org/docs/2.0.0/guide/conGettingStartedwithXMLBeans.html&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://xmlbeans.apache.org/docs/samples/navXMLBeansSamples.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xmlbeans.apache.org/docs/samples/navXMLBeansSamples.html&lt;/a&gt;&amp;nbsp;does not exist:
&lt;br&gt;&amp;gt; &amp;quot;Not Found
&lt;br&gt;&amp;gt; The requested URL /docs/samples/navXMLBeansSamples.html was not found on this server.
&lt;br&gt;&amp;gt; Apache/2.2.12 (Unix) mod_fcgid/2.3.2-dev Server at xmlbeans.apache.org Port 80&amp;quot;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26202189&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26202189&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XMLBEANS-421%29-Link-to-XMLBeans-Samples-on-Getting-Started-is-dead-tp26198328p26202189.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26198328</id>
	<title>[jira] Created: (XMLBEANS-421) Link to XMLBeans Samples on Getting Started is dead</title>
	<published>2009-11-04T07:31:33Z</published>
	<updated>2009-11-04T07:31:33Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">Link to XMLBeans Samples on Getting Started is dead
&lt;br&gt;---------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Key: XMLBEANS-421
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-421&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-421&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Project: XMLBeans
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Issue Type: Bug
&lt;br&gt;&amp;nbsp; &amp;nbsp; Affects Versions: unspecified
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reporter: Hayo
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Priority: Minor
&lt;br&gt;&lt;br&gt;&lt;br&gt;See
&lt;br&gt;&lt;a href=&quot;http://xmlbeans.apache.org/docs/2.0.0/guide/conGettingStartedwithXMLBeans.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xmlbeans.apache.org/docs/2.0.0/guide/conGettingStartedwithXMLBeans.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://xmlbeans.apache.org/docs/samples/navXMLBeansSamples.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xmlbeans.apache.org/docs/samples/navXMLBeansSamples.html&lt;/a&gt;&amp;nbsp;does not exist:
&lt;br&gt;&lt;br&gt;&amp;quot;Not Found
&lt;br&gt;&lt;br&gt;The requested URL /docs/samples/navXMLBeansSamples.html was not found on this server.
&lt;br&gt;Apache/2.2.12 (Unix) mod_fcgid/2.3.2-dev Server at xmlbeans.apache.org Port 80&amp;quot;
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26198328&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26198328&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XMLBEANS-421%29-Link-to-XMLBeans-Samples-on-Getting-Started-is-dead-tp26198328p26198328.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26190789</id>
	<title>Parsing JavaBean to XML and Viceversa</title>
	<published>2009-11-03T20:18:59Z</published>
	<updated>2009-11-03T20:18:59Z</updated>
	<author>
		<name>SivaKumarl</name>
	</author>
	<content type="html">Hi Friends,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I need to parse JavaBean to XML and XML to JavaBean, kindly suggest me the best API to parse
&lt;br&gt;&lt;br&gt;Thanks in Advance
&lt;br&gt;----------------
&lt;br&gt;Siva&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Parsing-JavaBean-to-XML-and-Viceversa-tp26190789p26190789.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26185156</id>
	<title>[jira] Commented: (XMLBEANS-262) Line ending behavior inconsistent when using save(OutputStream)</title>
	<published>2009-11-03T11:23:32Z</published>
	<updated>2009-11-03T11:23:32Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773135#action_12773135&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773135#action_12773135&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Raman Gupta commented on XMLBEANS-262:
&lt;br&gt;--------------------------------------
&lt;br&gt;&lt;br&gt;Good point about option #1. Option #3 it is then.
&lt;br&gt;&lt;br&gt;For the enhancement, I how about two new XmlOption's:
&lt;br&gt;&lt;br&gt;setEolStyle(String eolStyle)
&lt;br&gt;setEolStyleDeclaration(String eolStyle)
&lt;br&gt;&lt;br&gt;with the following constants as possible values:
&lt;br&gt;&lt;br&gt;EOLSTYLE_LF = &amp;quot;LF&amp;quot;;
&lt;br&gt;EOLSTYLE_CRLF = &amp;quot;CRLF&amp;quot;;
&lt;br&gt;EOLSTYLE_SYS = &amp;quot;SYS&amp;quot;;
&lt;br&gt;&lt;br&gt;To maintain backwards compatibility, the option eolStyle would be set by the user to EOLSTYLE_LF and eolStyleDeclaration would be EOLSTYLE_SYS. However, the defaults provided by XmlBeans should probably be EOLSTYLE_LF or EOLSTYLE_SYS for both. My personal preference would be _LF but I suspect most people would expect _SYS to be the default.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Line ending behavior inconsistent when using save(OutputStream)
&lt;br&gt;&amp;gt; ---------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XMLBEANS-262
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-262&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-262&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: XMLBeans
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: XmlObject
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: Version 2.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Windows, JDK 1.5.0_06
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Raman Gupta
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Radu Preotiuc-Pietro
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When executing an XmlObject.save(OutputStream) call, the output's line endings do not conform to any consistent and expected behavior. Even though this should not be a problem for any conformant XML processor due to &lt;a href=&quot;http://www.w3.org/TR/REC-xml/#sec-line-ends&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/REC-xml/#sec-line-ends&lt;/a&gt;, this sometimes causes problems with other tools or code.
&lt;br&gt;&amp;gt; Here is a code snippet to reproduce:
&lt;br&gt;&amp;gt; XmlObject &amp;nbsp;x = XmlObject.Factory.parse(&amp;quot;&amp;lt;root&amp;gt;\r\n&amp;lt;test/&amp;gt;\r\n&amp;lt;/root&amp;gt;&amp;quot;);
&lt;br&gt;&amp;gt; OutputStream o = new FileOutputStream(&amp;quot;out.xml&amp;quot;);
&lt;br&gt;&amp;gt; x.save(o);
&lt;br&gt;&amp;gt; o.close();
&lt;br&gt;&amp;gt; Viewing out.xml in a hex editor will show that the line ending after the XML declaration is determined by the System property line.separator (on windows, default is \r\n, or 0x0D, 0x0A) but the line endings after all the other elements is always a single \n (0x0A), regardless of line.separator and the input XML. &amp;nbsp;In other words, line endings do not match either the line endings provided in the input XML, or the platform default value on Windows.
&lt;br&gt;&amp;gt; I suppose there are several options for fixing this:
&lt;br&gt;&amp;gt; 1) The XML declaration continues to use the System property, but for other line endings, the input XML's line endings should be respected when output (\r\n on the input is output as is), OR
&lt;br&gt;&amp;gt; 2) That the output XML uses the System property and makes all line endings consistent.
&lt;br&gt;&amp;gt; 3) Some combination of the above with new XmlOption's settings.
&lt;br&gt;&amp;gt; My preference would be #3 so that the line ending behavior can be controlled by the user. For the default, I have no preference except to have some known documented behavior. Option #1 will sometimes result in a file with inconsistent line endings, but it could be argued that the user requested it so it is ok.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26185156&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26185156&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XMLBEANS-262%29-Line-ending-behavior-inconsistent-when-using-save%28OutputStream%29-tp3767414p26185156.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26184600</id>
	<title>[jira] Updated: (XMLBEANS-262) Line ending behavior inconsistent when using save(OutputStream)</title>
	<published>2009-11-03T10:49:32Z</published>
	<updated>2009-11-03T10:49:32Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Wing Yew Poon updated XMLBEANS-262:
&lt;br&gt;-----------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Issue Type: Improvement &amp;nbsp;(was: Bug)
&lt;br&gt;&lt;br&gt;This is not a bug. The behavior is by design.
&lt;br&gt;As the reporter found, the behavior is in fact predictable and known, although perhaps not documented. The xml declaration ends with the system line separator, while lines within the xml body end with \n (line feed).
&lt;br&gt;I personally would prefer the xml declaration to always end with \n as well, to be consistent with the rest of the document, regardless of the system.
&lt;br&gt;As an enhancement, we could provide an option to output all lines to end with the system line separator.
&lt;br&gt;Option 1 stated by the reporter is not possible, and conflicts with the xml spec. As the section cited by the reporter states, &amp;quot;the XML processor &amp;nbsp;MUST behave as if it normalized all line breaks in external parsed entities (including the document entity) on input, before parsing, by translating both the two-character sequence #xD #xA and any #xD that is not followed by #xA to a single #xA character.&amp;quot; Note the clause, &amp;quot;before parsing&amp;quot;. Thus all the line endings in the input are normalized away before parsing, so there is no way for XMLBeans to get them back from the XmlObject.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Line ending behavior inconsistent when using save(OutputStream)
&lt;br&gt;&amp;gt; ---------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XMLBEANS-262
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-262&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-262&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: XMLBeans
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: XmlObject
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: Version 2.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Windows, JDK 1.5.0_06
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Raman Gupta
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Radu Preotiuc-Pietro
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When executing an XmlObject.save(OutputStream) call, the output's line endings do not conform to any consistent and expected behavior. Even though this should not be a problem for any conformant XML processor due to &lt;a href=&quot;http://www.w3.org/TR/REC-xml/#sec-line-ends&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/REC-xml/#sec-line-ends&lt;/a&gt;, this sometimes causes problems with other tools or code.
&lt;br&gt;&amp;gt; Here is a code snippet to reproduce:
&lt;br&gt;&amp;gt; XmlObject &amp;nbsp;x = XmlObject.Factory.parse(&amp;quot;&amp;lt;root&amp;gt;\r\n&amp;lt;test/&amp;gt;\r\n&amp;lt;/root&amp;gt;&amp;quot;);
&lt;br&gt;&amp;gt; OutputStream o = new FileOutputStream(&amp;quot;out.xml&amp;quot;);
&lt;br&gt;&amp;gt; x.save(o);
&lt;br&gt;&amp;gt; o.close();
&lt;br&gt;&amp;gt; Viewing out.xml in a hex editor will show that the line ending after the XML declaration is determined by the System property line.separator (on windows, default is \r\n, or 0x0D, 0x0A) but the line endings after all the other elements is always a single \n (0x0A), regardless of line.separator and the input XML. &amp;nbsp;In other words, line endings do not match either the line endings provided in the input XML, or the platform default value on Windows.
&lt;br&gt;&amp;gt; I suppose there are several options for fixing this:
&lt;br&gt;&amp;gt; 1) The XML declaration continues to use the System property, but for other line endings, the input XML's line endings should be respected when output (\r\n on the input is output as is), OR
&lt;br&gt;&amp;gt; 2) That the output XML uses the System property and makes all line endings consistent.
&lt;br&gt;&amp;gt; 3) Some combination of the above with new XmlOption's settings.
&lt;br&gt;&amp;gt; My preference would be #3 so that the line ending behavior can be controlled by the user. For the default, I have no preference except to have some known documented behavior. Option #1 will sometimes result in a file with inconsistent line endings, but it could be argued that the user requested it so it is ok.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26184600&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26184600&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XMLBEANS-262%29-Line-ending-behavior-inconsistent-when-using-save%28OutputStream%29-tp3767414p26184600.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26183217</id>
	<title>How to get missing namespace-declaration into derived elements?</title>
	<published>2009-11-03T09:23:52Z</published>
	<updated>2009-11-03T09:23:52Z</updated>
	<author>
		<name>Christoph Nölke</name>
	</author>
	<content type="html">Hi folks,
&lt;br&gt;&lt;br&gt;I'm using XMLBeans 2.4 and encountered a validation issue because of a missing namespace definition on element level.
&lt;br&gt;&lt;br&gt;I defined an abstract base type &amp;quot;operator&amp;quot; in &amp;quot;schema.common&amp;quot;. In that schema there is another complex type &amp;quot;master&amp;quot; which contains some elements of type &amp;quot;operator&amp;quot;.
&lt;br&gt;In schema &amp;quot;schema.coolops&amp;quot; I defined derivations of that abstract &amp;quot;operator&amp;quot; type using extension. &amp;quot;schema.coolops&amp;quot; of course imports &amp;quot;schema.common&amp;quot;.
&lt;br&gt;(Don't worry about the structure - it's just an excerpt of a complex system ;-))
&lt;br&gt;&lt;br&gt;For adding concrete &amp;quot;operator&amp;quot;s to &amp;quot;master&amp;quot; I coded
&lt;br&gt;&amp;nbsp; Master.addNewOperator().changeType(schema.coolops.AddOperator.type)
&lt;br&gt;which returns me a concrete &amp;quot;operator&amp;quot; instance.
&lt;br&gt;&lt;br&gt;Upto here all works fine. I can save/load the XML BUT several XML validators (except XMLBeans) claim
&lt;br&gt;cvc-elt.4.2: Cannot resolve 'cops:AddOperator' to a type definition for element 'Operator'.
&lt;br&gt;&lt;br&gt;The XML looks like this:
&lt;br&gt;&amp;lt;application xsi:schemaLocation=&amp;quot;application &lt;a href=&quot;http://example.org/application.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://example.org/application.xsd&lt;/a&gt;&amp;quot; xmlns=&amp;quot;application&amp;quot; xmlns:xsi=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot; xmlns:com=&amp;quot;schema.common&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;com:master&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;com:operator xsi:type=&amp;quot;cops:AddOperator&amp;quot; xmlns:cops=&amp;quot;schema.coolops&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/com:operator&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/com:master&amp;gt;
&lt;br&gt;&amp;lt;/application&amp;gt;
&lt;br&gt;&lt;br&gt;If I add
&lt;br&gt;&amp;nbsp; xsi:schemaLocation=&amp;quot;schema.coolops &lt;a href=&quot;http://example.org/schema.coolops.xsd&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://example.org/schema.coolops.xsd&lt;/a&gt;&amp;quot;
&lt;br&gt;to the element &amp;quot;com:operator&amp;quot; it is declared to be valid.
&lt;br&gt;&lt;br&gt;Any ideas/hints/... how to get this &amp;quot;schemaLocation&amp;quot; set?
&lt;br&gt;&lt;br&gt;Thanks a lot.
&lt;br&gt;Christoph
&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26183217&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26183217&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---User-f349.html&quot; embed=&quot;fixTarget[349]&quot; target=&quot;_top&quot; &gt;Xml Beans - User&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-get-missing-namespace-declaration-into-derived-elements--tp26183217p26183217.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26173546</id>
	<title>[jira] Closed: (XMLBEANS-365) XMLBeans Schema Validation V2 from web does not work - http://www.xmlbeans.org/schemaToolsV2/validate.do</title>
	<published>2009-11-02T17:12:59Z</published>
	<updated>2009-11-02T17:12:59Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Wing Yew Poon closed XMLBEANS-365.
&lt;br&gt;----------------------------------
&lt;br&gt;&lt;br&gt;&lt;br&gt;The link to the external validation tool has also been removed from the Apache XMLBeans resources web page.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; XMLBeans Schema Validation V2 from web does not work - &lt;a href=&quot;http://www.xmlbeans.org/schemaToolsV2/validate.do&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.xmlbeans.org/schemaToolsV2/validate.do&lt;/a&gt;&lt;br&gt;&amp;gt; --------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XMLBEANS-365
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-365&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-365&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: XMLBeans
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Tools
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Jakub Příkazský
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Blocker
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When I tried to use schema validation tool i got following error:
&lt;br&gt;&amp;gt; HTTP Status 500 -
&lt;br&gt;&amp;gt; type Exception report
&lt;br&gt;&amp;gt; message
&lt;br&gt;&amp;gt; description The server encountered an internal error () that prevented it from fulfilling this request.
&lt;br&gt;&amp;gt; exception
&lt;br&gt;&amp;gt; javax.servlet.ServletException: Servlet execution threw an exception
&lt;br&gt;&amp;gt; root cause
&lt;br&gt;&amp;gt; java.lang.NoClassDefFoundError: org/w3/x2001/xmlSchema/SchemaDocument$Schema
&lt;br&gt;&amp;gt; 	validation.ValidateRequestAction.validateSchema(ValidateRequestAction.java:80)
&lt;br&gt;&amp;gt; 	validation.ValidateRequestAction.execute(ValidateRequestAction.java:49)
&lt;br&gt;&amp;gt; 	org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
&lt;br&gt;&amp;gt; 	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
&lt;br&gt;&amp;gt; 	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
&lt;br&gt;&amp;gt; 	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
&lt;br&gt;&amp;gt; 	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
&lt;br&gt;&amp;gt; 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
&lt;br&gt;&amp;gt; note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26173546&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26173546&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XMLBEANS-365%29-XMLBeans-Schema-Validation-V2-from-web-does-not-work---http%3A--www.xmlbeans.org-schemaToolsV2-validate.do-tp16096642p26173546.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26173527</id>
	<title>[jira] Resolved: (XMLBEANS-365) XMLBeans Schema Validation V2 from web does not work - http://www.xmlbeans.org/schemaToolsV2/validate.do</title>
	<published>2009-11-02T17:10:59Z</published>
	<updated>2009-11-02T17:10:59Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Wing Yew Poon resolved XMLBEANS-365.
&lt;br&gt;------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Resolution: Won't Fix
&lt;br&gt;&lt;br&gt;The website is no longer maintained due to lack of funding. See XMLBEANS-411. This bug is essentially a duplicate of that.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; XMLBeans Schema Validation V2 from web does not work - &lt;a href=&quot;http://www.xmlbeans.org/schemaToolsV2/validate.do&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.xmlbeans.org/schemaToolsV2/validate.do&lt;/a&gt;&lt;br&gt;&amp;gt; --------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XMLBEANS-365
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-365&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-365&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: XMLBeans
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Tools
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Jakub Příkazský
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Blocker
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When I tried to use schema validation tool i got following error:
&lt;br&gt;&amp;gt; HTTP Status 500 -
&lt;br&gt;&amp;gt; type Exception report
&lt;br&gt;&amp;gt; message
&lt;br&gt;&amp;gt; description The server encountered an internal error () that prevented it from fulfilling this request.
&lt;br&gt;&amp;gt; exception
&lt;br&gt;&amp;gt; javax.servlet.ServletException: Servlet execution threw an exception
&lt;br&gt;&amp;gt; root cause
&lt;br&gt;&amp;gt; java.lang.NoClassDefFoundError: org/w3/x2001/xmlSchema/SchemaDocument$Schema
&lt;br&gt;&amp;gt; 	validation.ValidateRequestAction.validateSchema(ValidateRequestAction.java:80)
&lt;br&gt;&amp;gt; 	validation.ValidateRequestAction.execute(ValidateRequestAction.java:49)
&lt;br&gt;&amp;gt; 	org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
&lt;br&gt;&amp;gt; 	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
&lt;br&gt;&amp;gt; 	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
&lt;br&gt;&amp;gt; 	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
&lt;br&gt;&amp;gt; 	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
&lt;br&gt;&amp;gt; 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
&lt;br&gt;&amp;gt; note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26173527&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26173527&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XMLBEANS-365%29-XMLBeans-Schema-Validation-V2-from-web-does-not-work---http%3A--www.xmlbeans.org-schemaToolsV2-validate.do-tp16096642p26173527.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26173475</id>
	<title>[jira] Commented: (XMLBEANS-366) Apache JXPath support</title>
	<published>2009-11-02T17:02:59Z</published>
	<updated>2009-11-02T17:02:59Z</updated>
	<author>
		<name>JIRA xmlbeans-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12772804#action_12772804&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12772804#action_12772804&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Wing Yew Poon commented on XMLBEANS-366:
&lt;br&gt;----------------------------------------
&lt;br&gt;&lt;br&gt;I submitted an enhancement in XMLBeans 2.4.0 to make the XPath/XQuery engine pluggable (see XMLBEANS-373). This is a more general solution to implement the functionality Robert seeks (using JXPath instead of Saxon).
&lt;br&gt;We could add a sample demonstrating this pluggability, using JXPath as the XPath engine. That could be nice.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Apache JXPath support
&lt;br&gt;&amp;gt; ---------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XMLBEANS-366
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XMLBEANS-366&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XMLBEANS-366&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: XMLBeans
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: New Feature
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: XPath
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: &amp;nbsp;Version 2.3.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Robert Marcano
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: jxpath-support.patch
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have patched the version 2.3 to support Apache JXPath &amp;nbsp;when no saxon is found (default behavior), I sent this to the dev mailing list without answer, so I an adding it here to see if it gets a little more attention (I can update it to trunk and make the necessary changes):
&lt;br&gt;&amp;gt; Greeting everyone, I have been a long time user of XMlBeans but it is
&lt;br&gt;&amp;gt; the first time I needed to use the XPath support. Using an old Saxon
&lt;br&gt;&amp;gt; release (8.6.1 as documented because is the version that is API
&lt;br&gt;&amp;gt; compatible) everything is working perfectly.
&lt;br&gt;&amp;gt; My application is Webstart based so I try to reduce the amount of
&lt;br&gt;&amp;gt; external dependencies in order to have a small download size, I am
&lt;br&gt;&amp;gt; currently using JXPath for some Beans trees searches, so I decided to
&lt;br&gt;&amp;gt; patch XMLBeans to try to use JXPath after it fails to find Saxon. I am
&lt;br&gt;&amp;gt; attaching the patch so anyone can use it and to know if the changes are
&lt;br&gt;&amp;gt; accepted so I can port it to the trunk release instead of 2.3.0.
&lt;br&gt;&amp;gt; In the process of developing this patch I found one problem with the
&lt;br&gt;&amp;gt; XPath function &amp;quot;id()&amp;quot;. The JXPath implementation of this functions when
&lt;br&gt;&amp;gt; it is traversing a DOM tree is to find the document owner and call
&lt;br&gt;&amp;gt; getElementById(). the current DOM implementation of XMLBeans only
&lt;br&gt;&amp;gt; recognize ID attributes when they are defined on a DTD and does not use
&lt;br&gt;&amp;gt; the XML schema information. Even when my XMLBeans model parses a DOM
&lt;br&gt;&amp;gt; tree obtained from a XML Schema validating DOM parser, the ID attributes
&lt;br&gt;&amp;gt; information is lost because it recreated an internal tree that discards
&lt;br&gt;&amp;gt; the &amp;quot;isId&amp;quot; information added by the DOM parser. I tried to use the
&lt;br&gt;&amp;gt; schema type information in the method Cur&amp;gt;&amp;gt;isAttrOfTypeId but still do
&lt;br&gt;&amp;gt; not find a way, any helps with this is appreciated
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26173475&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26173475&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xml-Beans---Dev-f348.html&quot; embed=&quot;fixTarget[348]&quot; target=&quot;_top&quot; &gt;Xml Beans - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XMLBEANS-366%29-Apache-JXPath-support-tp16311959p26173475.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26159869</id>
	<title>xmlbeans, javascript and the problem with empty tags</title>
	<published>2009-11-02T16:40:19Z</published>
	<updated>2009-11-02T16:40:19Z</updated>
	<author>
		<name>bvd</name>
	</author>
	<content type="html">Hi there,
&lt;br&gt;&lt;br&gt;Hope you can help me with this one. I tried looking around the web but didn't find solutions to this problem.
&lt;br&gt;I am using xmlbeans to generate web pages. When I make it add an external script, it is added as follows:
&lt;br&gt;&lt;br&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;js/headerscript.js&amp;quot; /&amp;gt;
&lt;br&gt;&lt;br&gt;However, (x)html requires a closing tag to be present, since this is considered a non-empty element. Even
&lt;br&gt;&lt;br&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;js/headerscript.js&amp;quot; xsi:nil=&amp;quot;true&amp;quot; xmlns:xsi=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;won't suffice. How can I force xmlbeans, e.g. via xmloptions to print closing tags from 'empty' elements, so that I get this:
&lt;br&gt;&lt;br&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;js/headerscript.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&lt;br&gt;&lt;br&gt;Thanks in advance for your replies :)
&lt;br&gt;&lt;br&gt;Bart
&lt;br&gt;&lt;br&gt;PS: If you'd ask me it is the (x)html specification that's wrong here btw...&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/XMLBean_Beginner-f13836.html&quot; embed=&quot;fixTarget[13836]&quot; target=&quot;_top&quot; &gt;XMLBean_Beginner&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/xmlbeans%2C-javascript-and-the-problem-with-empty-tags-tp26159869p26159869.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26159868</id>
	<title>xmlbeans, javascript and the problem with empty tags</title>
	<published>2009-11-02T16:40:04Z</published>
	<updated>2009-11-02T16:40:04Z</updated>
	<author>
		<name>bvd</name>
	</author>
	<content type="html">Hi there,
&lt;br&gt;&lt;br&gt;Hope you can help me with this one. I tried looking around the web but didn't find solutions to this problem.
&lt;br&gt;I am using xmlbeans to generate web pages. When I make it add an external script, it is added as follows:
&lt;br&gt;&lt;br&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;js/headerscript.js&amp;quot; /&amp;gt;
&lt;br&gt;&lt;br&gt;However, (x)html requires a closing tag to be present, since this is considered a non-empty element. Even
&lt;br&gt;&lt;br&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;js/headerscript.js&amp;quot; xsi:nil=&amp;quot;true&amp;quot; xmlns:xsi=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;won't suffice. How can I force xmlbeans, e.g. via xmloptions to print closing tags from 'empty' elements, so that I get this:
&lt;br&gt;&lt;br&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;js/headerscript.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&lt;br&gt;&lt;br&gt;Thanks in advance for your replies :)
&lt;br&gt;&lt;br&gt;Bart
&lt;br&gt;&lt;br&gt;PS: If you'd ask me it is the (x)html specification that's wrong here btw...&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/XMLBean_Beginner-f13836.html&quot; embed=&quot;fixTarget[13836]&quot; target=&quot;_top&quot; &gt;XMLBean_Beginner&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/xmlbeans%2C-javascript-and-the-problem-with-empty-tags-tp26159868p26159868.html" />
</entry>

</feed>
