<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>dev@xmlbeans.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/"/>
<id>http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/</id>
<updated>2009-12-05T14:28:26Z</updated>
<entry>
<title>[jira] Updated: (XMLBEANS-372) XMLBean locale exception is thrown when element containing '&amp;' is used</title>
<author><name>&quot;Hayo (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200912.mbox/%3c586522968.1259848580687.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c586522968-1259848580687-JavaMail-jira@brutus%3e</id>
<updated>2009-12-03T13:56:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hayo updated XMLBEANS-372:
--------------------------

    Comment: was deleted

(was: &lt;nachname&gt;NES Elektro &amp;amp; Service GmbH&lt;/nachname&gt;
is correct xml. Nonetheless parsing it shows exactly the same bug as the example above.

org.apache.xmlbeans.XmlException: error: Unexpected character encountered (lex state 3): 'a'
	at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486)
	at org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:712)
	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:696)
	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:683)
	at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:208)
	at de.telekom.wholesale.oss.v2.envelope.AnnehmenAuftragRequestDocument$Factory.parse(Unknown
Source)
	at com.oneandone.consumer.freenet.talmigration.meldungen.wita.xmlhandler.WitaPass1.parseXmlString(WitaPass1.java:211)
	at com.oneandone.consumer.freenet.talmigration.meldungen.wita.xmlhandler.WitaPass1.main(WitaPass1.java:139)
Caused by: org.xml.sax.SAXParseException: Unexpected character encountered (lex state 3):
'a'
	at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
	at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
	at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454)
	... 7 more

If you have a look at http://www.w3.org/TR/xml/#dt-escape you will see, that the parser MUST
 recognize this entity. 
Probably the error is inside the parser called by piccolo, but the stack trace is not going
that far.

For this, XMLBeans does not comply XML 1.0.

My environment:
XMLBeans 2.4.0;
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode)

)

&gt; XMLBean locale exception is thrown when element containing '&amp;' is used
&gt; ----------------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-372
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-372
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;          Components: XmlObject
&gt;    Affects Versions: Version 2.1
&gt;         Environment: Solaris
&gt;            Reporter: Paul Gray
&gt;
&gt; I have an issue where if a special character is entered (example '&amp;') the SAML authentication
breaks. 
&gt; An identical case was raised by another user, See url below) the issue was apparently
resolved and a new version was released, unfortunately this does not appear to have resolved
the issue!
&gt; http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200512.mbox/%3C209085473.1134164174755.JavaMail.jira@ajax.apache.org%3E
&gt; The error appears to be in: org.apache.xmlbeans.impl.store.Locale.java
&gt;  
&gt; 13:38:47,913 INFO  [STDOUT] org.apache.xmlbeans.XmlException: error: Unexpected character
encountered (lex state 3): ' '
&gt; 13:38:47,945 INFO  [STDOUT]     at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3467)
&gt; 13:38:47,960 INFO  [STDOUT]     at org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:706)
&gt; Kind Regards
&gt; Paul

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (XMLBEANS-372) XMLBean locale exception is thrown when element containing '&amp;' is used</title>
<author><name>&quot;Hayo (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200912.mbox/%3c1233937000.1259837900873.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1233937000-1259837900873-JavaMail-jira@brutus%3e</id>
<updated>2009-12-03T10:58:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/XMLBEANS-372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12785265#action_12785265
] 

Hayo commented on XMLBEANS-372:
-------------------------------

&lt;nachname&gt;NES Elektro &amp;amp; Service GmbH&lt;/nachname&gt;
is correct xml. Nonetheless parsing it shows exactly the same bug as the example above.

org.apache.xmlbeans.XmlException: error: Unexpected character encountered (lex state 3): 'a'
	at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486)
	at org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:712)
	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:696)
	at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:683)
	at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:208)
	at de.telekom.wholesale.oss.v2.envelope.AnnehmenAuftragRequestDocument$Factory.parse(Unknown
Source)
	at com.oneandone.consumer.freenet.talmigration.meldungen.wita.xmlhandler.WitaPass1.parseXmlString(WitaPass1.java:211)
	at com.oneandone.consumer.freenet.talmigration.meldungen.wita.xmlhandler.WitaPass1.main(WitaPass1.java:139)
Caused by: org.xml.sax.SAXParseException: Unexpected character encountered (lex state 3):
'a'
	at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
	at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
	at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454)
	... 7 more

If you have a look at http://www.w3.org/TR/xml/#dt-escape you will see, that the parser MUST
 recognize this entity. 
Probably the error is inside the parser called by piccolo, but the stack trace is not going
that far.

For this, XMLBeans does not comply XML 1.0.

My environment:
XMLBeans 2.4.0;
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode)



&gt; XMLBean locale exception is thrown when element containing '&amp;' is used
&gt; ----------------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-372
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-372
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;          Components: XmlObject
&gt;    Affects Versions: Version 2.1
&gt;         Environment: Solaris
&gt;            Reporter: Paul Gray
&gt;
&gt; I have an issue where if a special character is entered (example '&amp;') the SAML authentication
breaks. 
&gt; An identical case was raised by another user, See url below) the issue was apparently
resolved and a new version was released, unfortunately this does not appear to have resolved
the issue!
&gt; http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200512.mbox/%3C209085473.1134164174755.JavaMail.jira@ajax.apache.org%3E
&gt; The error appears to be in: org.apache.xmlbeans.impl.store.Locale.java
&gt;  
&gt; 13:38:47,913 INFO  [STDOUT] org.apache.xmlbeans.XmlException: error: Unexpected character
encountered (lex state 3): ' '
&gt; 13:38:47,945 INFO  [STDOUT]     at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3467)
&gt; 13:38:47,960 INFO  [STDOUT]     at org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:706)
&gt; Kind Regards
&gt; Paul

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[Release Candidate] XMLBeans 2.5.0-RC1</title>
<author><name>Cezar Andrei &lt;cezar.andrei@oracle.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3caac9b149-bf65-4d5b-85fe-013484f81b9a@default%3e"/>
<id>urn:uuid:%3caac9b149-bf65-4d5b-85fe-013484f81b9a@default%3e</id>
<updated>2009-11-25T23:24:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello everyone,

 

The first release candidate for XMLBeans 2.5.0 is available at:

http://xmlbeans.apache.org/dist/

 

Please give it a try and let us know if there are any problems with it.

 

Thank you,

Cezar Andrei


</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (XMLBEANS-424) XMLBeans fail to honour elements which has default attribute value as well as mandatory in schema.</title>
<author><name>&quot;zoheb patankar (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c407995592.1258985019633.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c407995592-1258985019633-JavaMail-jira@brutus%3e</id>
<updated>2009-11-23T14:03:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

zoheb patankar updated XMLBEANS-424:
------------------------------------

    Description: 
Hi,

Consider following schema example :-

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/"
xmlns:tns="http://www.example.org/"&gt;
&lt;complexType name="Employee"&gt;
&lt;sequence&gt;
	&lt;element name="name" type="string"/&gt;
	&lt;element name="country" type="string" default="India"/&gt;
&lt;/sequence&gt;
&lt;/complexType&gt;
&lt;element name="emp" type="tns:Employee"/&gt; 
&lt;/schema&gt;

&gt;From above schema i generated schema type jar and populated XMLBean object "EmpDocument"
setting only the name property of it.
The resultant xml that i got from above object contains only name element as given below:-

&lt;emp xmlns="http://www.example.org/"&gt;
  &lt;name&gt;zoheb&lt;/name&gt;
&lt;/emp&gt;

As can be seen from generated xml it only contains "name" element skipping the"country"
element. 
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 .

Same is the issue other way around as well i.e XML to XMLObject.



  was:
Hi,

Consider following schema example :-

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/"
xmlns:tns="http://www.example.org/"&gt;
&lt;complexType name="Employee"&gt;
&lt;sequence&gt;
	&lt;element name="name" type="string"/&gt;
	&lt;element name="country" type="string" default="India"/&gt;
&lt;/sequence&gt;
&lt;/complexType&gt;
&lt;element name="emp" type="tns:Employee"/&gt; 
&lt;/schema&gt;

&gt;From above schema i generated schema type jar and populated XMLBean object "EmpDocument"
setting only the name property of it.
The resultant xml that i got from above contains only name element as given below:-

&lt;emp xmlns="http://www.example.org/"&gt;
  &lt;name&gt;zoheb&lt;/name&gt;
&lt;/emp&gt;

As can be seen from generated xml it only contains "name" element skipping the"country"
element. 
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 .

Same is the issue other way around as well i.e XML to XMLObject.




&gt; XMLBeans fail to honour elements which has default attribute value as well as mandatory
in schema.
&gt; --------------------------------------------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-424
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-424
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;          Components: XmlObject
&gt;    Affects Versions: Version 2
&gt;         Environment: Windows XP,Sun solaris 2.5.1, Weblogic 9.2
&gt;            Reporter: zoheb patankar
&gt;
&gt; Hi,
&gt; Consider following schema example :-
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/"
xmlns:tns="http://www.example.org/"&gt;
&gt; &lt;complexType name="Employee"&gt;
&gt; &lt;sequence&gt;
&gt; 	&lt;element name="name" type="string"/&gt;
&gt; 	&lt;element name="country" type="string" default="India"/&gt;
&gt; &lt;/sequence&gt;
&gt; &lt;/complexType&gt;
&gt; &lt;element name="emp" type="tns:Employee"/&gt; 
&gt; &lt;/schema&gt;
&gt; From above schema i generated schema type jar and populated XMLBean object "EmpDocument"
setting only the name property of it.
&gt; The resultant xml that i got from above object contains only name element as given below:-
&gt; &lt;emp xmlns="http://www.example.org/"&gt;
&gt;   &lt;name&gt;zoheb&lt;/name&gt;
&gt; &lt;/emp&gt;
&gt; As can be seen from generated xml it only contains "name" element skipping the"country"
&gt; element. 
&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 .
&gt; Same is the issue other way around as well i.e XML to XMLObject.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (XMLBEANS-424) XMLBeans fail to honour elements which has default attribute value as well as mandatory in schema.</title>
<author><name>&quot;zoheb patankar (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c364015954.1258984780024.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c364015954-1258984780024-JavaMail-jira@brutus%3e</id>
<updated>2009-11-23T13:59:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
XMLBeans fail to honour elements which has default attribute value as well as mandatory in
schema.
--------------------------------------------------------------------------------------------------

                 Key: XMLBEANS-424
                 URL: https://issues.apache.org/jira/browse/XMLBEANS-424
             Project: XMLBeans
          Issue Type: Bug
          Components: XmlObject
    Affects Versions: Version 2
         Environment: Windows XP,Sun solaris 2.5.1, Weblogic 9.2
            Reporter: zoheb patankar


Hi,

Consider following schema example :-

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.org/"
xmlns:tns="http://www.example.org/"&gt;
&lt;complexType name="Employee"&gt;
&lt;sequence&gt;
	&lt;element name="name" type="string"/&gt;
	&lt;element name="country" type="string" default="India"/&gt;
&lt;/sequence&gt;
&lt;/complexType&gt;
&lt;element name="emp" type="tns:Employee"/&gt; 
&lt;/schema&gt;

&gt;From above schema i generated schema type jar and populated XMLBean object "EmpDocument"
setting only the name property of it.
The resultant xml that i got from above contains only name element as given below:-

&lt;emp xmlns="http://www.example.org/"&gt;
  &lt;name&gt;zoheb&lt;/name&gt;
&lt;/emp&gt;

As can be seen from generated xml it only contains "name" element skipping the"country"
element. 
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 .

Same is the issue other way around as well i.e XML to XMLObject.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Issue Comment Edited: (XMLBEANS-316) NPE on complex elements with default or fixed values</title>
<author><name>&quot;Vladimir Shor (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c931143832.1258727619702.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c931143832-1258727619702-JavaMail-jira@brutus%3e</id>
<updated>2009-11-20T14:33:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/XMLBEANS-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12780542#action_12780542
] 

Vladimir Shor edited comment on XMLBEANS-316 at 11/20/09 2:32 PM:
------------------------------------------------------------------

XMLBeans 2.4.0 also have this bug. 

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):

if (!model.getType().getContentModel().isSkippable())

throws NPE. I Guess ContentModel is not set, if element has nothing besides attributes.


      was (Author: vovencij):
    XMLBeans 2.4.0 also have this bug.
  
&gt; NPE on complex elements with default or fixed values
&gt; ----------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-316
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-316
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;    Affects Versions: Version 2.1, Version 2.2, Version 2.2.1
&gt;         Environment: Sun Java 6 (build 1.6.0-b105), Linux
&gt;            Reporter: Benjamin Gufler
&gt;            Assignee: Radu Preotiuc-Pietro
&gt;
&gt; Compiling an XML schema which defines default or fixed values for elements with complex
types leads to a NPE in StscChecker:
&gt; Exception in thread "main" java.lang.NullPointerException
&gt;         at org.apache.xmlbeans.impl.schema.StscChecker.checkElementDefaults(StscChecker.java:206)
&gt;         at org.apache.xmlbeans.impl.schema.StscChecker.checkFields(StscChecker.java:152)
&gt;         at org.apache.xmlbeans.impl.schema.StscChecker.checkAll(StscChecker.java:67)
&gt;         at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compileImpl(SchemaTypeSystemCompiler.java:310)
&gt;         at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:181)
&gt;         at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:952)
&gt;         at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1072)
&gt;         at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:368)
&gt; (The line numbers in this stack trace refer to xmlbeans-2.2.0, but the same error arises
with 2.1.0).
&gt; Here's a minimal subset of the schema I'd like to compile which reproduces the error:
&gt; &lt;?xml version="1.0" encoding="utf-8"?&gt;
&gt; &lt;xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
&gt; 	&lt;xs:element name="Segment" type="Spectrum" /&gt;
&gt; 	&lt;xs:complexType name="Spectrum"&gt;
&gt; 		&lt;xs:sequence&gt;
&gt; 			&lt;xs:element minOccurs="0" maxOccurs="1" name="SegmentType" type="TextParam" default="Spectrum"
/&gt;
&gt; 		&lt;/xs:sequence&gt;
&gt; 	&lt;/xs:complexType&gt;
&gt; 	&lt;xs:complexType name="TextParam" mixed="true"&gt;
&gt; 		&lt;xs:attribute name="name" type="xs:string"&gt;
&gt; 		&lt;/xs:attribute&gt;
&gt; 		&lt;xs:attribute name="ucd" type="xs:string"&gt;
&gt; 		&lt;/xs:attribute&gt;
&gt; 	&lt;/xs:complexType&gt;
&gt; &lt;/xs:schema&gt;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Issue Comment Edited: (XMLBEANS-316) NPE on complex elements with default or fixed values</title>
<author><name>&quot;Vladimir Shor (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c1877677125.1258727619727.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1877677125-1258727619727-JavaMail-jira@brutus%3e</id>
<updated>2009-11-20T14:33:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/XMLBEANS-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12780542#action_12780542
] 

Vladimir Shor edited comment on XMLBEANS-316 at 11/20/09 2:33 PM:
------------------------------------------------------------------

XMLBeans 2.4.0 also have this bug. 

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):

if (!model.getType().getContentModel().isSkippable())

throws NPE. I Guess ContentModel is not set, if element has nothing besides attributes.


      was (Author: vovencij):
    XMLBeans 2.4.0 also have this bug. 

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):

if (!model.getType().getContentModel().isSkippable())

throws NPE. I Guess ContentModel is not set, if element has nothing besides attributes.

  
&gt; NPE on complex elements with default or fixed values
&gt; ----------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-316
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-316
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;    Affects Versions: Version 2.1, Version 2.2, Version 2.2.1
&gt;         Environment: Sun Java 6 (build 1.6.0-b105), Linux
&gt;            Reporter: Benjamin Gufler
&gt;            Assignee: Radu Preotiuc-Pietro
&gt;
&gt; Compiling an XML schema which defines default or fixed values for elements with complex
types leads to a NPE in StscChecker:
&gt; Exception in thread "main" java.lang.NullPointerException
&gt;         at org.apache.xmlbeans.impl.schema.StscChecker.checkElementDefaults(StscChecker.java:206)
&gt;         at org.apache.xmlbeans.impl.schema.StscChecker.checkFields(StscChecker.java:152)
&gt;         at org.apache.xmlbeans.impl.schema.StscChecker.checkAll(StscChecker.java:67)
&gt;         at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compileImpl(SchemaTypeSystemCompiler.java:310)
&gt;         at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:181)
&gt;         at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:952)
&gt;         at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1072)
&gt;         at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:368)
&gt; (The line numbers in this stack trace refer to xmlbeans-2.2.0, but the same error arises
with 2.1.0).
&gt; Here's a minimal subset of the schema I'd like to compile which reproduces the error:
&gt; &lt;?xml version="1.0" encoding="utf-8"?&gt;
&gt; &lt;xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
&gt; 	&lt;xs:element name="Segment" type="Spectrum" /&gt;
&gt; 	&lt;xs:complexType name="Spectrum"&gt;
&gt; 		&lt;xs:sequence&gt;
&gt; 			&lt;xs:element minOccurs="0" maxOccurs="1" name="SegmentType" type="TextParam" default="Spectrum"
/&gt;
&gt; 		&lt;/xs:sequence&gt;
&gt; 	&lt;/xs:complexType&gt;
&gt; 	&lt;xs:complexType name="TextParam" mixed="true"&gt;
&gt; 		&lt;xs:attribute name="name" type="xs:string"&gt;
&gt; 		&lt;/xs:attribute&gt;
&gt; 		&lt;xs:attribute name="ucd" type="xs:string"&gt;
&gt; 		&lt;/xs:attribute&gt;
&gt; 	&lt;/xs:complexType&gt;
&gt; &lt;/xs:schema&gt;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (XMLBEANS-316) NPE on complex elements with default or fixed values</title>
<author><name>&quot;Vladimir Shor (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c269951005.1258722699712.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c269951005-1258722699712-JavaMail-jira@brutus%3e</id>
<updated>2009-11-20T13:11:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/XMLBEANS-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12780542#action_12780542
] 

Vladimir Shor commented on XMLBEANS-316:
----------------------------------------

XMLBeans 2.4.0 also have this bug.

&gt; NPE on complex elements with default or fixed values
&gt; ----------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-316
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-316
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;    Affects Versions: Version 2.1, Version 2.2, Version 2.2.1
&gt;         Environment: Sun Java 6 (build 1.6.0-b105), Linux
&gt;            Reporter: Benjamin Gufler
&gt;            Assignee: Radu Preotiuc-Pietro
&gt;
&gt; Compiling an XML schema which defines default or fixed values for elements with complex
types leads to a NPE in StscChecker:
&gt; Exception in thread "main" java.lang.NullPointerException
&gt;         at org.apache.xmlbeans.impl.schema.StscChecker.checkElementDefaults(StscChecker.java:206)
&gt;         at org.apache.xmlbeans.impl.schema.StscChecker.checkFields(StscChecker.java:152)
&gt;         at org.apache.xmlbeans.impl.schema.StscChecker.checkAll(StscChecker.java:67)
&gt;         at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compileImpl(SchemaTypeSystemCompiler.java:310)
&gt;         at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:181)
&gt;         at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:952)
&gt;         at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1072)
&gt;         at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:368)
&gt; (The line numbers in this stack trace refer to xmlbeans-2.2.0, but the same error arises
with 2.1.0).
&gt; Here's a minimal subset of the schema I'd like to compile which reproduces the error:
&gt; &lt;?xml version="1.0" encoding="utf-8"?&gt;
&gt; &lt;xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
&gt; 	&lt;xs:element name="Segment" type="Spectrum" /&gt;
&gt; 	&lt;xs:complexType name="Spectrum"&gt;
&gt; 		&lt;xs:sequence&gt;
&gt; 			&lt;xs:element minOccurs="0" maxOccurs="1" name="SegmentType" type="TextParam" default="Spectrum"
/&gt;
&gt; 		&lt;/xs:sequence&gt;
&gt; 	&lt;/xs:complexType&gt;
&gt; 	&lt;xs:complexType name="TextParam" mixed="true"&gt;
&gt; 		&lt;xs:attribute name="name" type="xs:string"&gt;
&gt; 		&lt;/xs:attribute&gt;
&gt; 		&lt;xs:attribute name="ucd" type="xs:string"&gt;
&gt; 		&lt;/xs:attribute&gt;
&gt; 	&lt;/xs:complexType&gt;
&gt; &lt;/xs:schema&gt;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (XMLBEANS-260) Calling SchemaType.isSkippedAnonymousType() can throw a NPE</title>
<author><name>&quot;Wing Yew Poon (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c1813166170.1258680039706.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1813166170-1258680039706-JavaMail-jira@brutus%3e</id>
<updated>2009-11-20T01:20:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wing Yew Poon resolved XMLBEANS-260.
------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: Version 2.1)
                   Version 2.4.1 

Fix should go into the next release (expected to be 2.5).


&gt; Calling SchemaType.isSkippedAnonymousType() can throw a NPE
&gt; -----------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-260
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-260
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;          Components: XmlObject
&gt;    Affects Versions: Version 2.1
&gt;         Environment: Java 1.5, Windows XP
&gt;            Reporter: Luke Peters
&gt;            Assignee: Wing Yew Poon
&gt;             Fix For: Version 2.4.1 
&gt;
&gt;
&gt; If isSkippedAnonymousType()  is called on a SchemaType instance that does not have _outerSchemaTypeRef
set, then a NPE will be thrown. Example:
&gt;   MyXmlBean myBean = MyXmlBean.Factory.newInstance();
&gt;   boolean isSkipped = myBean.schemaType().isSkippedAnonymousType();  &lt;- throws a NPE
&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.
&gt; Current code:
&gt;     public boolean isSkippedAnonymousType()
&gt;         { return  _outerSchemaTypeRef.get().getBaseType() == this ||
&gt;                 _outerSchemaTypeRef.get().getContentBasedOnType() == this; }
&gt; Potential fix:
&gt;     public boolean isSkippedAnonymousType()
&gt;         { return _outerSchemaTypeRef == null ? false : _outerSchemaTypeRef.get().getBaseType()
== this ||
&gt;                 _outerSchemaTypeRef.get().getContentBasedOnType() == this; }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (XMLBEANS-298) Saver.entitizeAttrValue() doesn't honor SAVE_SUBSTITUTE_CHARACTERS setting</title>
<author><name>&quot;Wing Yew Poon (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c1641187695.1258679919906.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1641187695-1258679919906-JavaMail-jira@brutus%3e</id>
<updated>2009-11-20T01:18:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wing Yew Poon resolved XMLBEANS-298.
------------------------------------

       Resolution: Fixed
    Fix Version/s: Version 2.4.1 

The fix will go into the next release (expected to be 2.5).
The character escaping now applies to attributes as well. Namespace declarations are not escaped.

&gt; Saver.entitizeAttrValue() doesn't honor SAVE_SUBSTITUTE_CHARACTERS setting
&gt; --------------------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-298
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-298
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;    Affects Versions: Version 2.2
&gt;            Reporter: Niklas Mehner
&gt;            Assignee: Wing Yew Poon
&gt;             Fix For: Version 2.4.1 
&gt;
&gt;
&gt; I'm formatting a XML Document using the following XMLOptions:
&gt;       XmlOptions options = new XmlOptions();
&gt;       options.setSavePrettyPrint();
&gt;       XmlOptionCharEscapeMap escapes = new XmlOptionCharEscapeMap();
&gt;       escapes.addMapping('&lt;', XmlOptionCharEscapeMap.PREDEF_ENTITY);
&gt;       escapes.addMapping('&gt;', XmlOptionCharEscapeMap.PREDEF_ENTITY);
&gt;       escapes.addMapping('&amp;', XmlOptionCharEscapeMap.PREDEF_ENTITY);
&gt;       escapes.addMapping('\'', XmlOptionCharEscapeMap.PREDEF_ENTITY);
&gt;       escapes.addMapping('"', XmlOptionCharEscapeMap.PREDEF_ENTITY);
&gt;       options.setSaveSubstituteCharacters(escapes);
&gt; This works when using content containing the escaped chars, but attribut values are not
escaped:
&gt; &lt;inventory&gt;
&gt;     &lt;customer name1="&gt;"/&gt;
&gt; &lt;/inventory&gt;
&gt; This should be:
&gt; &lt;inventory&gt;
&gt;     &lt;customer name1="&amp;gt;"/&gt;
&gt; &lt;/inventory&gt;
&gt; The reason for this is, that Saver.entitizeAttrValue() does not contain:
&gt; [....]
&gt; else if (isEscapedChar( ch ))
&gt;                         i = replace( i, _replaceChar.getEscapedString( ch ) );
&gt; [....]
&gt; This is only done in Saver.entitizeContent().

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (XMLBEANS-162) NPE during schema compilation with extension</title>
<author><name>&quot;Radu Preotiuc-Pietro (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c734960885.1258081719726.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c734960885-1258081719726-JavaMail-jira@brutus%3e</id>
<updated>2009-11-13T03:08:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Radu Preotiuc-Pietro resolved XMLBEANS-162.
-------------------------------------------

       Resolution: Fixed
    Fix Version/s: Version 2.4 

&gt; NPE during schema compilation with extension
&gt; --------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-162
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-162
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;          Components: Compiler
&gt;    Affects Versions: Version 2 Beta 1
&gt;            Reporter: Harald Meyer
&gt;            Assignee: Jacob Danner
&gt;             Fix For: Version 2.4 
&gt;
&gt;
&gt; When no extensions are used, everything works fine. Stack trace:
&gt;     [java] Exception in thread "main" java.lang.NullPointerException
&gt;     [java] 	at org.apache.xmlbeans.impl.config.BindingConfigImpl.error(BindingConfigImpl.java:289)
&gt;     [java] 	at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateJava(InterfaceExtensionImpl.java:91)
&gt;     [java] 	at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.validateInterface(InterfaceExtensionImpl.java:66)
&gt;     [java] 	at org.apache.xmlbeans.impl.config.InterfaceExtensionImpl.newInstance(InterfaceExtensionImpl.java:38)
&gt;     [java] 	at org.apache.xmlbeans.impl.config.BindingConfigImpl.recordExtensionSetting(BindingConfigImpl.java:234)
&gt;     [java] 	at org.apache.xmlbeans.impl.config.BindingConfigImpl.&lt;init&gt;(BindingConfigImpl.java:109)
&gt;     [java] 	at org.apache.xmlbeans.impl.config.BindingConfigImpl.forConfigDocuments(BindingConfigImpl.java:69)
&gt;     [java] 	at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:939)
&gt;     [java] 	at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1067)
&gt;     [java] 	at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:367)
&gt; From my understanding, XMLBeans tries to report an error message, but the StscStack (what
ever it is) is empty.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<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>
<author><name>&quot;Radu Preotiuc-Pietro (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c2001689340.1258080039680.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2001689340-1258080039680-JavaMail-jira@brutus%3e</id>
<updated>2009-11-13T02:40:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Radu Preotiuc-Pietro resolved XMLBEANS-310.
-------------------------------------------

       Resolution: Won't Fix
    Fix Version/s: unspecified

&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.
&gt; --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-310
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-310
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;          Components: XmlObject
&gt;         Environment: AXIS2 version 1.1
&gt; Tomcat version 5.5
&gt;            Reporter: Severin Ecker
&gt;            Priority: Minor
&gt;             Fix For: unspecified
&gt;
&gt;
&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)
&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()).
&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.
&gt; Oh and, there is also no error message in this case stating that a class couldn't be
found/loaded!
&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!
&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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (XMLBEANS-334) No access to content for mixed complexType containing an empty choice only</title>
<author><name>&quot;Radu Preotiuc-Pietro (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c404465071.1258079079737.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c404465071-1258079079737-JavaMail-jira@brutus%3e</id>
<updated>2009-11-13T02:24:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Radu Preotiuc-Pietro resolved XMLBEANS-334.
-------------------------------------------

       Resolution: Invalid
    Fix Version/s: unspecified

&gt; No access to content for mixed complexType containing an empty choice only
&gt; --------------------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-334
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-334
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;          Components: Compiler
&gt;    Affects Versions: Version 2.2,  Version 2.3
&gt;            Reporter: Johannes Stamminger
&gt;            Priority: Trivial
&gt;             Fix For: unspecified
&gt;
&gt;
&gt; Within a small example that I will attach in a minute there is defined an element Title:
&gt; 	&lt;xs:element name="Title"&gt;
&gt; 		&lt;xs:complexType mixed="true"&gt;
&gt; 			&lt;xs:choice minOccurs="0" maxOccurs="unbounded"/&gt;
&gt; 		&lt;/xs:complexType&gt;
&gt; 	&lt;/xs:element&gt;
&gt; The generated sourcecode  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.
&gt; Though the generated implementation TitleImpl in XBTitleDocumentImpl does provide access
as it
&gt;  -&gt; derives from org.apache.xmlbeans.impl.values.XmlComplexContentImpl 
&gt;  -&gt; deriving from XmlObjectBase
&gt;  -&gt; granting access to that value by way of method getStringValue()

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (XMLBEANS-334) No access to content for mixed complexType containing an empty choice only</title>
<author><name>&quot;Radu Preotiuc-Pietro (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c1803060855.1258078959641.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1803060855-1258078959641-JavaMail-jira@brutus%3e</id>
<updated>2009-11-13T02:22:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/XMLBEANS-334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12777337#action_12777337
] 

Radu Preotiuc-Pietro commented on XMLBEANS-334:
-----------------------------------------------

Well, the thing is that, since you can have many children elements under the "Title" 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.

See the MixedContent sample.


&gt; No access to content for mixed complexType containing an empty choice only
&gt; --------------------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-334
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-334
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;          Components: Compiler
&gt;    Affects Versions: Version 2.2,  Version 2.3
&gt;            Reporter: Johannes Stamminger
&gt;            Priority: Trivial
&gt;
&gt; Within a small example that I will attach in a minute there is defined an element Title:
&gt; 	&lt;xs:element name="Title"&gt;
&gt; 		&lt;xs:complexType mixed="true"&gt;
&gt; 			&lt;xs:choice minOccurs="0" maxOccurs="unbounded"/&gt;
&gt; 		&lt;/xs:complexType&gt;
&gt; 	&lt;/xs:element&gt;
&gt; The generated sourcecode  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.
&gt; Though the generated implementation TitleImpl in XBTitleDocumentImpl does provide access
as it
&gt;  -&gt; derives from org.apache.xmlbeans.impl.values.XmlComplexContentImpl 
&gt;  -&gt; deriving from XmlObjectBase
&gt;  -&gt; granting access to that value by way of method getStringValue()

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (XMLBEANS-423) Extra semi-colon in SchemaTypeCodePrinter changes apparent semantics of 'if' statement</title>
<author><name>&quot;Radu Preotiuc-Pietro (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c35945219.1257898587896.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c35945219-1257898587896-JavaMail-jira@brutus%3e</id>
<updated>2009-11-11T00:16:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/XMLBEANS-423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12776185#action_12776185
] 

Radu Preotiuc-Pietro commented on XMLBEANS-423:
-----------------------------------------------

That does make a lot of sense, to remove the semicolon.

&gt; Extra semi-colon in SchemaTypeCodePrinter changes apparent semantics of 'if' statement
&gt; --------------------------------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-423
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-423
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;          Components: Compiler
&gt;    Affects Versions: Version 2.4 
&gt;            Reporter: Josh Micich
&gt;            Priority: Minor
&gt;
&gt; See line 807:
&gt; http://svn.apache.org/viewvc/xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java?annotate=799073

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (XMLBEANS-423) Extra semi-colon in SchemaTypeCodePrinter changes apparent semantics of 'if' statement</title>
<author><name>&quot;Josh Micich (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c1040733925.1257888088133.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1040733925-1257888088133-JavaMail-jira@brutus%3e</id>
<updated>2009-11-10T21:21:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Extra semi-colon in SchemaTypeCodePrinter changes apparent semantics of 'if' statement
--------------------------------------------------------------------------------------

                 Key: XMLBEANS-423
                 URL: https://issues.apache.org/jira/browse/XMLBEANS-423
             Project: XMLBeans
          Issue Type: Bug
          Components: Compiler
    Affects Versions: Version 2.4 
            Reporter: Josh Micich
            Priority: Minor


See line 807:
http://svn.apache.org/viewvc/xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java?annotate=799073

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (XMLBEANS-422) org.apache.xmlbeans.XmlException: error: Unexpected end of file while parsing xml-document</title>
<author><name>&quot;Matthias Weidinger (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c1617306566.1257843868468.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1617306566-1257843868468-JavaMail-jira@brutus%3e</id>
<updated>2009-11-10T09:04:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
org.apache.xmlbeans.XmlException: error: Unexpected end of file while parsing xml-document
------------------------------------------------------------------------------------------

                 Key: XMLBEANS-422
                 URL: https://issues.apache.org/jira/browse/XMLBEANS-422
             Project: XMLBeans
          Issue Type: Bug
    Affects Versions: Version 2.4 
         Environment: OS UNIX - AIX
            Reporter: Matthias Weidinger


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.

ByteArrayInputStream inputStream = new ByteArrayInputStream(content);
 xmlObject = XmlObject.Factory.parse(inputStream);

Is there a version available that is not affected by this problem?

thx in advance

Matthias Weidinger

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (XMLBEANS-421) Link to XMLBeans Samples on Getting Started is dead</title>
<author><name>&quot;Wing Yew Poon (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c155192356.1257359852421.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c155192356-1257359852421-JavaMail-jira@brutus%3e</id>
<updated>2009-11-04T18:37:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/XMLBEANS-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773598#action_12773598
] 

Wing Yew Poon commented on XMLBEANS-421:
----------------------------------------

I think we can change the link to http://xmlbeans.apache.org/samples/index.html then.

&gt; Link to XMLBeans Samples on Getting Started is dead
&gt; ---------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-421
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-421
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;    Affects Versions: unspecified
&gt;            Reporter: Hayo
&gt;            Priority: Minor
&gt;
&gt; See
&gt; http://xmlbeans.apache.org/docs/2.0.0/guide/conGettingStartedwithXMLBeans.html
&gt; http://xmlbeans.apache.org/docs/samples/navXMLBeansSamples.html does not exist:
&gt; "Not Found
&gt; The requested URL /docs/samples/navXMLBeansSamples.html was not found on this server.
&gt; Apache/2.2.12 (Unix) mod_fcgid/2.3.2-dev Server at xmlbeans.apache.org Port 80"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (XMLBEANS-421) Link to XMLBeans Samples on Getting Started is dead</title>
<author><name>&quot;Hayo (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c1744037055.1257348693432.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1744037055-1257348693432-JavaMail-jira@brutus%3e</id>
<updated>2009-11-04T15:31:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Link to XMLBeans Samples on Getting Started is dead
---------------------------------------------------

                 Key: XMLBEANS-421
                 URL: https://issues.apache.org/jira/browse/XMLBEANS-421
             Project: XMLBeans
          Issue Type: Bug
    Affects Versions: unspecified
            Reporter: Hayo
            Priority: Minor


See
http://xmlbeans.apache.org/docs/2.0.0/guide/conGettingStartedwithXMLBeans.html

http://xmlbeans.apache.org/docs/samples/navXMLBeansSamples.html does not exist:

"Not Found

The requested URL /docs/samples/navXMLBeansSamples.html was not found on this server.
Apache/2.2.12 (Unix) mod_fcgid/2.3.2-dev Server at xmlbeans.apache.org Port 80"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Parsing JavaBean to XML and Viceversa</title>
<author><name>SivaKumarl &lt;sivakumarl@naradaproducts.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c26190789.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26190789-post@talk-nabble-com%3e</id>
<updated>2009-11-04T04:19:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi Friends,
          I need to parse JavaBean to XML and XML to JavaBean, kindly
suggest me the best API to parse

Thanks in Advance
----------------
Siva
-- 
View this message in context: http://old.nabble.com/Parsing-JavaBean-to-XML-and-Viceversa-tp26190789p26190789.html
Sent from the Xml Beans - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (XMLBEANS-262) Line ending behavior inconsistent when using save(OutputStream)</title>
<author><name>&quot;Raman Gupta (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c1438453970.1257276212509.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1438453970-1257276212509-JavaMail-jira@brutus%3e</id>
<updated>2009-11-03T19:23:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/XMLBEANS-262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773135#action_12773135
] 

Raman Gupta commented on XMLBEANS-262:
--------------------------------------

Good point about option #1. Option #3 it is then.

For the enhancement, I how about two new XmlOption's:

setEolStyle(String eolStyle)
setEolStyleDeclaration(String eolStyle)

with the following constants as possible values:

EOLSTYLE_LF = "LF";
EOLSTYLE_CRLF = "CRLF";
EOLSTYLE_SYS = "SYS";

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.

&gt; Line ending behavior inconsistent when using save(OutputStream)
&gt; ---------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-262
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-262
&gt;             Project: XMLBeans
&gt;          Issue Type: Improvement
&gt;          Components: XmlObject
&gt;    Affects Versions: Version 2.1
&gt;         Environment: Windows, JDK 1.5.0_06
&gt;            Reporter: Raman Gupta
&gt;            Assignee: Radu Preotiuc-Pietro
&gt;            Priority: Minor
&gt;
&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 http://www.w3.org/TR/REC-xml/#sec-line-ends, this
sometimes causes problems with other tools or code.
&gt; Here is a code snippet to reproduce:
&gt; XmlObject  x = XmlObject.Factory.parse("&lt;root&gt;\r\n&lt;test/&gt;\r\n&lt;/root&gt;");
&gt; OutputStream o = new FileOutputStream("out.xml");
&gt; x.save(o);
&gt; o.close();
&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.  In other words, line endings do not match either the
line endings provided in the input XML, or the platform default value on Windows.
&gt; I suppose there are several options for fixing this:
&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
&gt; 2) That the output XML uses the System property and makes all line endings consistent.
&gt; 3) Some combination of the above with new XmlOption's settings.
&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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (XMLBEANS-262) Line ending behavior inconsistent when using save(OutputStream)</title>
<author><name>&quot;Wing Yew Poon (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c1015521821.1257274172569.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1015521821-1257274172569-JavaMail-jira@brutus%3e</id>
<updated>2009-11-03T18:49:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wing Yew Poon updated XMLBEANS-262:
-----------------------------------

    Issue Type: Improvement  (was: Bug)

This is not a bug. The behavior is by design.
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).
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.
As an enhancement, we could provide an option to output all lines to end with the system line
separator.
Option 1 stated by the reporter is not possible, and conflicts with the xml spec. As the section
cited by the reporter states, "the XML processor  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." Note the clause, "before parsing". 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.


&gt; Line ending behavior inconsistent when using save(OutputStream)
&gt; ---------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-262
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-262
&gt;             Project: XMLBeans
&gt;          Issue Type: Improvement
&gt;          Components: XmlObject
&gt;    Affects Versions: Version 2.1
&gt;         Environment: Windows, JDK 1.5.0_06
&gt;            Reporter: Raman Gupta
&gt;            Assignee: Radu Preotiuc-Pietro
&gt;            Priority: Minor
&gt;
&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 http://www.w3.org/TR/REC-xml/#sec-line-ends, this
sometimes causes problems with other tools or code.
&gt; Here is a code snippet to reproduce:
&gt; XmlObject  x = XmlObject.Factory.parse("&lt;root&gt;\r\n&lt;test/&gt;\r\n&lt;/root&gt;");
&gt; OutputStream o = new FileOutputStream("out.xml");
&gt; x.save(o);
&gt; o.close();
&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.  In other words, line endings do not match either the
line endings provided in the input XML, or the platform default value on Windows.
&gt; I suppose there are several options for fixing this:
&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
&gt; 2) That the output XML uses the System property and makes all line endings consistent.
&gt; 3) Some combination of the above with new XmlOption's settings.
&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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Closed: (XMLBEANS-365) XMLBeans Schema Validation V2 from web does not work - http://www.xmlbeans.org/schemaToolsV2/validate.do</title>
<author><name>&quot;Wing Yew Poon (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c976324247.1257210779666.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c976324247-1257210779666-JavaMail-jira@brutus%3e</id>
<updated>2009-11-03T01:12:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wing Yew Poon closed XMLBEANS-365.
----------------------------------


The link to the external validation tool has also been removed from the Apache XMLBeans resources
web page.

&gt; XMLBeans Schema Validation V2 from web does not work - http://www.xmlbeans.org/schemaToolsV2/validate.do
&gt; --------------------------------------------------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-365
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-365
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;          Components: Tools
&gt;            Reporter: Jakub Příkazský
&gt;            Priority: Blocker
&gt;
&gt; When I tried to use schema validation tool i got following error:
&gt; HTTP Status 500 -
&gt; type Exception report
&gt; message
&gt; description The server encountered an internal error () that prevented it from fulfilling
this request.
&gt; exception
&gt; javax.servlet.ServletException: Servlet execution threw an exception
&gt; root cause
&gt; java.lang.NoClassDefFoundError: org/w3/x2001/xmlSchema/SchemaDocument$Schema
&gt; 	validation.ValidateRequestAction.validateSchema(ValidateRequestAction.java:80)
&gt; 	validation.ValidateRequestAction.execute(ValidateRequestAction.java:49)
&gt; 	org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
&gt; 	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
&gt; 	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
&gt; 	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
&gt; 	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
&gt; 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
&gt; note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17
logs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (XMLBEANS-365) XMLBeans Schema Validation V2 from web does not work - http://www.xmlbeans.org/schemaToolsV2/validate.do</title>
<author><name>&quot;Wing Yew Poon (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c325055285.1257210659588.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c325055285-1257210659588-JavaMail-jira@brutus%3e</id>
<updated>2009-11-03T01:10:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wing Yew Poon resolved XMLBEANS-365.
------------------------------------

    Resolution: Won't Fix

The website is no longer maintained due to lack of funding. See XMLBEANS-411. This bug is
essentially a duplicate of that.

&gt; XMLBeans Schema Validation V2 from web does not work - http://www.xmlbeans.org/schemaToolsV2/validate.do
&gt; --------------------------------------------------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-365
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-365
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;          Components: Tools
&gt;            Reporter: Jakub Příkazský
&gt;            Priority: Blocker
&gt;
&gt; When I tried to use schema validation tool i got following error:
&gt; HTTP Status 500 -
&gt; type Exception report
&gt; message
&gt; description The server encountered an internal error () that prevented it from fulfilling
this request.
&gt; exception
&gt; javax.servlet.ServletException: Servlet execution threw an exception
&gt; root cause
&gt; java.lang.NoClassDefFoundError: org/w3/x2001/xmlSchema/SchemaDocument$Schema
&gt; 	validation.ValidateRequestAction.validateSchema(ValidateRequestAction.java:80)
&gt; 	validation.ValidateRequestAction.execute(ValidateRequestAction.java:49)
&gt; 	org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
&gt; 	org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
&gt; 	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
&gt; 	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
&gt; 	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
&gt; 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
&gt; note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17
logs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (XMLBEANS-366) Apache JXPath support</title>
<author><name>&quot;Wing Yew Poon (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c1210086966.1257210179433.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1210086966-1257210179433-JavaMail-jira@brutus%3e</id>
<updated>2009-11-03T01:02:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/XMLBEANS-366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12772804#action_12772804
] 

Wing Yew Poon commented on XMLBEANS-366:
----------------------------------------

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).
We could add a sample demonstrating this pluggability, using JXPath as the XPath engine. That
could be nice.


&gt; Apache JXPath support
&gt; ---------------------
&gt;
&gt;                 Key: XMLBEANS-366
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-366
&gt;             Project: XMLBeans
&gt;          Issue Type: New Feature
&gt;          Components: XPath
&gt;    Affects Versions:  Version 2.3.1
&gt;            Reporter: Robert Marcano
&gt;            Priority: Minor
&gt;         Attachments: jxpath-support.patch
&gt;
&gt;
&gt; I have patched the version 2.3 to support Apache JXPath  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):
&gt; Greeting everyone, I have been a long time user of XMlBeans but it is
&gt; the first time I needed to use the XPath support. Using an old Saxon
&gt; release (8.6.1 as documented because is the version that is API
&gt; compatible) everything is working perfectly.
&gt; My application is Webstart based so I try to reduce the amount of
&gt; external dependencies in order to have a small download size, I am
&gt; currently using JXPath for some Beans trees searches, so I decided to
&gt; patch XMLBeans to try to use JXPath after it fails to find Saxon. I am
&gt; attaching the patch so anyone can use it and to know if the changes are
&gt; accepted so I can port it to the trunk release instead of 2.3.0.
&gt; In the process of developing this patch I found one problem with the
&gt; XPath function "id()". The JXPath implementation of this functions when
&gt; it is traversing a DOM tree is to find the document owner and call
&gt; getElementById(). the current DOM implementation of XMLBeans only
&gt; recognize ID attributes when they are defined on a DTD and does not use
&gt; the XML schema information. Even when my XMLBeans model parses a DOM
&gt; tree obtained from a XML Schema validating DOM parser, the ID attributes
&gt; information is lost because it recreated an internal tree that discards
&gt; the "isId" information added by the DOM parser. I tried to use the
&gt; schema type information in the method Cur&gt;&gt;isAttrOfTypeId but still do
&gt; not find a way, any helps with this is appreciated

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (XMLBEANS-268) Collision detected while generating classnames for (except-case) identical schema names</title>
<author><name>&quot;Cezar Andrei (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c1378518805.1257207059379.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1378518805-1257207059379-JavaMail-jira@brutus%3e</id>
<updated>2009-11-03T00:10:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/XMLBEANS-268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12772777#action_12772777
] 

Cezar Andrei commented on XMLBEANS-268:
---------------------------------------

Just to be clear: there are 2 problems here:

1. if target namespace differs only in caps, on Windows the generated resources will collide
and there is no workaround for this at this point.
   - a potential fix should change the encoding algorithm from uri to dir name, which will
break backwards compatibility so the code should be enabled only through a system property

2. and the generation of the same class/interface name, which is by design and the user should
use a .xsdconfig file to change the package name or the class/interface name

I reopened the issue only for tracking problem 1.

&gt; Collision detected while generating classnames for (except-case) identical schema names
&gt; ---------------------------------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-268
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-268
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;    Affects Versions: Version 2
&gt;         Environment: unix
&gt;            Reporter: Mike Barrett
&gt;            Priority: Minor
&gt;
&gt; We have two schemas: 
&gt; slideshow.xsd and slideShow.xsd
&gt; Which have identical names, except case. The issue is that it seems that this causes
a name collision, and causes the generated class name to have a number inserted:
&gt; slideshow.xsd --&gt; SlideshowDocumentImpl
&gt; slideShow.xsd --&gt; SlideShowDocument2Impl
&gt; now if you remove the '2' from the slideShow class, you still have two unique java class
names. Therefore, I don't see the need to append a number to the generated name.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Assigned: (XMLBEANS-328) Problems in multi-processor environment</title>
<author><name>&quot;Wing Yew Poon (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c2085891144.1257206339709.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2085891144-1257206339709-JavaMail-jira@brutus%3e</id>
<updated>2009-11-02T23:58:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wing Yew Poon reassigned XMLBEANS-328:
--------------------------------------

    Assignee: Radu Preotiuc-Pietro

&gt; Problems in multi-processor environment
&gt; ---------------------------------------
&gt;
&gt;                 Key: XMLBEANS-328
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-328
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;    Affects Versions: Version 2.2, Version 2.2.1
&gt;         Environment: At least Win XP and Linux 2.6 with Sun JRE. Intel multi-core processor.
&gt;            Reporter: Pasi Lehtimaki
&gt;            Assignee: Radu Preotiuc-Pietro
&gt;            Priority: Critical
&gt;         Attachments: patch-xmlbeans-2.2.0, patch-XMLBEANS328-2.4.0.patch, xbean.jar
&gt;
&gt;
&gt; Running a strongly threadded Eclipse application using xmlbeans in multi-processor (/multi-core)
computer causes frequent crashes in xmlbeans code. 
&gt; Most of the crases happen in Cur.java in form of a NPE: 
&gt; ***************************************************
&gt; java.lang.NullPointerException
&gt; 	at org.apache.xmlbeans.impl.store.Cur.listRemove(Cur.java:2783)
&gt; 	at org.apache.xmlbeans.impl.store.Locale.getCur(Locale.java:2775)
&gt; 	at org.apache.xmlbeans.impl.store.Locale.tempCur(Locale.java:2736)
&gt; 	at org.apache.xmlbeans.impl.store.Locale.tempCur(Locale.java:2731)
&gt; 	at org.apache.xmlbeans.impl.store.Xobj.tempCur(Xobj.java:348)
&gt; 	at org.apache.xmlbeans.impl.store.Xobj.new_cursor(Xobj.java:1810)
&gt; 	at org.apache.xmlbeans.impl.values.XmlObjectBase.newCursor(XmlObjectBase.java:250)
&gt; 	at org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.java:424)
&gt; 	at org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.java:415)
&gt; ***************************************************
&gt; In some cases the crash happens in Locale.exit():
&gt; ***************************************************
&gt;  Exception occurred: java.lang.ArrayIndexOutOfBoundsException: -1
&gt;                      at org.apache.xmlbeans.impl.store.Locale.exit(Locale.java:2840)
&gt; ***************************************************
&gt; This problem problem occurs in xmlbeans 2.2. and in the latest version in SVN. The problem
disappears when I turn the multi-core support off from BIOS and reappears again immediently
when I turn it back on. So I believe that this has something to do with threading. Only classes
Locale.java and Cur.java seem to be affected. I haven't encountered any exceptions from other
classes. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Reopened: (XMLBEANS-268) Collision detected while generating classnames for (except-case) identical schema names</title>
<author><name>&quot;Cezar Andrei (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c32686854.1257205139497.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c32686854-1257205139497-JavaMail-jira@brutus%3e</id>
<updated>2009-11-02T23:38:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Cezar Andrei reopened XMLBEANS-268:
-----------------------------------


I would leave this bug open, because this is really a problem on windows.

&gt; Collision detected while generating classnames for (except-case) identical schema names
&gt; ---------------------------------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-268
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-268
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;    Affects Versions: Version 2
&gt;         Environment: unix
&gt;            Reporter: Mike Barrett
&gt;            Priority: Minor
&gt;
&gt; We have two schemas: 
&gt; slideshow.xsd and slideShow.xsd
&gt; Which have identical names, except case. The issue is that it seems that this causes
a name collision, and causes the generated class name to have a number inserted:
&gt; slideshow.xsd --&gt; SlideshowDocumentImpl
&gt; slideShow.xsd --&gt; SlideShowDocument2Impl
&gt; now if you remove the '2' from the slideShow class, you still have two unique java class
names. Therefore, I don't see the need to append a number to the generated name.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (XMLBEANS-260) Calling SchemaType.isSkippedAnonymousType() can throw a NPE</title>
<author><name>&quot;Wing Yew Poon (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c1467385830.1257204779431.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1467385830-1257204779431-JavaMail-jira@brutus%3e</id>
<updated>2009-11-02T23:32:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/XMLBEANS-260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12772751#action_12772751
] 

Wing Yew Poon commented on XMLBEANS-260:
----------------------------------------

The isSkippedAnonymousType method should only be called on a SchemaType instance that *is*
in fact an anonymous type.


&gt; Calling SchemaType.isSkippedAnonymousType() can throw a NPE
&gt; -----------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-260
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-260
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;          Components: XmlObject
&gt;    Affects Versions: Version 2.1
&gt;         Environment: Java 1.5, Windows XP
&gt;            Reporter: Luke Peters
&gt;            Assignee: Wing Yew Poon
&gt;             Fix For: Version 2.1
&gt;
&gt;
&gt; If isSkippedAnonymousType()  is called on a SchemaType instance that does not have _outerSchemaTypeRef
set, then a NPE will be thrown. Example:
&gt;   MyXmlBean myBean = MyXmlBean.Factory.newInstance();
&gt;   boolean isSkipped = myBean.schemaType().isSkippedAnonymousType();  &lt;- throws a NPE
&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.
&gt; Current code:
&gt;     public boolean isSkippedAnonymousType()
&gt;         { return  _outerSchemaTypeRef.get().getBaseType() == this ||
&gt;                 _outerSchemaTypeRef.get().getContentBasedOnType() == this; }
&gt; Potential fix:
&gt;     public boolean isSkippedAnonymousType()
&gt;         { return _outerSchemaTypeRef == null ? false : _outerSchemaTypeRef.get().getBaseType()
== this ||
&gt;                 _outerSchemaTypeRef.get().getContentBasedOnType() == this; }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Assigned: (XMLBEANS-316) NPE on complex elements with default or fixed values</title>
<author><name>&quot;Cezar Andrei (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c235573212.1257204419709.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c235573212-1257204419709-JavaMail-jira@brutus%3e</id>
<updated>2009-11-02T23:26:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Cezar Andrei reassigned XMLBEANS-316:
-------------------------------------

    Assignee: Radu Preotiuc-Pietro

Exception in thread "main" java.lang.NullPointerException
        at org.apache.xmlbeans.impl.schema.StscChecker.checkElementDefaults(StscChecker.java:255)
        at org.apache.xmlbeans.impl.schema.StscChecker.checkFields(StscChecker.java:192)
        at org.apache.xmlbeans.impl.schema.StscChecker.checkAll(StscChecker.java:68)
        at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compileImpl(SchemaTypeSystemCompiler.java:311)
        at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:181)
        at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:979)
        at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1100)
        at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:373)

&gt; NPE on complex elements with default or fixed values
&gt; ----------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-316
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-316
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;    Affects Versions: Version 2.1, Version 2.2, Version 2.2.1
&gt;         Environment: Sun Java 6 (build 1.6.0-b105), Linux
&gt;            Reporter: Benjamin Gufler
&gt;            Assignee: Radu Preotiuc-Pietro
&gt;
&gt; Compiling an XML schema which defines default or fixed values for elements with complex
types leads to a NPE in StscChecker:
&gt; Exception in thread "main" java.lang.NullPointerException
&gt;         at org.apache.xmlbeans.impl.schema.StscChecker.checkElementDefaults(StscChecker.java:206)
&gt;         at org.apache.xmlbeans.impl.schema.StscChecker.checkFields(StscChecker.java:152)
&gt;         at org.apache.xmlbeans.impl.schema.StscChecker.checkAll(StscChecker.java:67)
&gt;         at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compileImpl(SchemaTypeSystemCompiler.java:310)
&gt;         at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:181)
&gt;         at org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCompiler.java:952)
&gt;         at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1072)
&gt;         at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:368)
&gt; (The line numbers in this stack trace refer to xmlbeans-2.2.0, but the same error arises
with 2.1.0).
&gt; Here's a minimal subset of the schema I'd like to compile which reproduces the error:
&gt; &lt;?xml version="1.0" encoding="utf-8"?&gt;
&gt; &lt;xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
&gt; 	&lt;xs:element name="Segment" type="Spectrum" /&gt;
&gt; 	&lt;xs:complexType name="Spectrum"&gt;
&gt; 		&lt;xs:sequence&gt;
&gt; 			&lt;xs:element minOccurs="0" maxOccurs="1" name="SegmentType" type="TextParam" default="Spectrum"
/&gt;
&gt; 		&lt;/xs:sequence&gt;
&gt; 	&lt;/xs:complexType&gt;
&gt; 	&lt;xs:complexType name="TextParam" mixed="true"&gt;
&gt; 		&lt;xs:attribute name="name" type="xs:string"&gt;
&gt; 		&lt;/xs:attribute&gt;
&gt; 		&lt;xs:attribute name="ucd" type="xs:string"&gt;
&gt; 		&lt;/xs:attribute&gt;
&gt; 	&lt;/xs:complexType&gt;
&gt; &lt;/xs:schema&gt;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Closed: (XMLBEANS-373) pluggable XPath/XQuery engine support</title>
<author><name>&quot;Wing Yew Poon (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c437803722.1257194460176.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c437803722-1257194460176-JavaMail-jira@brutus%3e</id>
<updated>2009-11-02T20:41:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wing Yew Poon closed XMLBEANS-373.
----------------------------------


&gt; pluggable XPath/XQuery engine support
&gt; -------------------------------------
&gt;
&gt;                 Key: XMLBEANS-373
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-373
&gt;             Project: XMLBeans
&gt;          Issue Type: Improvement
&gt;          Components: XPath
&gt;    Affects Versions:  Version 2.3
&gt;            Reporter: Wing Yew Poon
&gt;            Assignee: Wing Yew Poon
&gt;             Fix For: Version 2.4 
&gt;
&gt;         Attachments: delegate_diff3.txt
&gt;
&gt;
&gt; This is an enhancement proposal.
&gt; Currently, XMLBeans looks for certain engines in certain orders to process XPath/XQuery
expressions. In particular, it searches for the Saxon XQuery engine. There has been a request
(XMLBEANS-366) to support the use of JXPath for processing XPath expressions. The patch from
the user changes the engine lookup logic to add looking for JXPath if Saxon is not found.
I propose to make the choice of engine more pluggable instead of hardcoding logic to lookup
Saxon/JXPath/etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (XMLBEANS-373) pluggable XPath/XQuery engine support</title>
<author><name>&quot;Wing Yew Poon (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c1308460468.1257194459888.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1308460468-1257194459888-JavaMail-jira@brutus%3e</id>
<updated>2009-11-02T20:40:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wing Yew Poon resolved XMLBEANS-373.
------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: TBD)
                   Version 2.4 

This enhancement went into XMLBeans 2.4.0.

&gt; pluggable XPath/XQuery engine support
&gt; -------------------------------------
&gt;
&gt;                 Key: XMLBEANS-373
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-373
&gt;             Project: XMLBeans
&gt;          Issue Type: Improvement
&gt;          Components: XPath
&gt;    Affects Versions:  Version 2.3
&gt;            Reporter: Wing Yew Poon
&gt;            Assignee: Wing Yew Poon
&gt;             Fix For: Version 2.4 
&gt;
&gt;         Attachments: delegate_diff3.txt
&gt;
&gt;
&gt; This is an enhancement proposal.
&gt; Currently, XMLBeans looks for certain engines in certain orders to process XPath/XQuery
expressions. In particular, it searches for the Saxon XQuery engine. There has been a request
(XMLBEANS-366) to support the use of JXPath for processing XPath expressions. The patch from
the user changes the engine lookup logic to add looking for JXPath if Saxon is not found.
I propose to make the choice of engine more pluggable instead of hardcoding logic to lookup
Saxon/JXPath/etc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Closed: (XMLBEANS-367) support for Saxon 9</title>
<author><name>&quot;Wing Yew Poon (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c1297177064.1257194459645.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1297177064-1257194459645-JavaMail-jira@brutus%3e</id>
<updated>2009-11-02T20:40:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wing Yew Poon closed XMLBEANS-367.
----------------------------------


&gt; support for Saxon 9
&gt; -------------------
&gt;
&gt;                 Key: XMLBEANS-367
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-367
&gt;             Project: XMLBeans
&gt;          Issue Type: Improvement
&gt;    Affects Versions:  Version 2.3
&gt;            Reporter: Wing Yew Poon
&gt;            Assignee: Wing Yew Poon
&gt;             Fix For: Version 2.4 
&gt;
&gt;         Attachments: build.xml, saxon9_support_diff.txt, xbean_xpath.jar, XBeansXPath.java,
XBeansXQuery.java
&gt;
&gt;
&gt; The current XMLBeans release, 2.3.0, supports Saxon 8.8. There have been requests from
the user community to upgrade support for Saxon to a more current version. The current version
of Saxon is 9.0.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (XMLBEANS-367) support for Saxon 9</title>
<author><name>&quot;Wing Yew Poon (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c1137511564.1257194339963.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1137511564-1257194339963-JavaMail-jira@brutus%3e</id>
<updated>2009-11-02T20:38:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wing Yew Poon resolved XMLBEANS-367.
------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: TBD)
                   Version 2.4 

The changes to support Saxon 9 went into XMLBeans 2.4.0.

&gt; support for Saxon 9
&gt; -------------------
&gt;
&gt;                 Key: XMLBEANS-367
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-367
&gt;             Project: XMLBeans
&gt;          Issue Type: Improvement
&gt;    Affects Versions:  Version 2.3
&gt;            Reporter: Wing Yew Poon
&gt;            Assignee: Wing Yew Poon
&gt;             Fix For: Version 2.4 
&gt;
&gt;         Attachments: build.xml, saxon9_support_diff.txt, xbean_xpath.jar, XBeansXPath.java,
XBeansXQuery.java
&gt;
&gt;
&gt; The current XMLBeans release, 2.3.0, supports Saxon 8.8. There have been requests from
the user community to upgrade support for Saxon to a more current version. The current version
of Saxon is 9.0.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (XMLBEANS-268) Collision detected while generating classnames for (except-case) identical schema names</title>
<author><name>&quot;Mike Barrett (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c1507333946.1257193619370.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1507333946-1257193619370-JavaMail-jira@brutus%3e</id>
<updated>2009-11-02T20:26:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/XMLBEANS-268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12772649#action_12772649
] 

Mike Barrett commented on XMLBEANS-268:
---------------------------------------

Thanks for the response - makes sense as it could be considered a "feature" at this point.
Keep up the good work!

&gt; Collision detected while generating classnames for (except-case) identical schema names
&gt; ---------------------------------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-268
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-268
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;    Affects Versions: Version 2
&gt;         Environment: unix
&gt;            Reporter: Mike Barrett
&gt;            Priority: Minor
&gt;
&gt; We have two schemas: 
&gt; slideshow.xsd and slideShow.xsd
&gt; Which have identical names, except case. The issue is that it seems that this causes
a name collision, and causes the generated class name to have a number inserted:
&gt; slideshow.xsd --&gt; SlideshowDocumentImpl
&gt; slideShow.xsd --&gt; SlideShowDocument2Impl
&gt; now if you remove the '2' from the slideShow class, you still have two unique java class
names. Therefore, I don't see the need to append a number to the generated name.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (XMLBEANS-268) Collision detected while generating classnames for (except-case) identical schema names</title>
<author><name>&quot;Wing Yew Poon (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c90276502.1257193499516.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c90276502-1257193499516-JavaMail-jira@brutus%3e</id>
<updated>2009-11-02T20:24:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/XMLBEANS-268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12772648#action_12772648
] 

Wing Yew Poon commented on XMLBEANS-268:
----------------------------------------

Mike,
a number of fixes have gone into the trunk since XMLBeans 2.4.0 was released more than a year
ago, and the currently active committers are planning to make a new release in the immediate
future. We are reviewing all the currently open issues and prioritizing what else we may try
to fix. Our resources are very limited and we are all working on a purely voluntary basis.
At this time, we do not expect to revisit the name-mangling algorithm used by XMLBeans, which
has been in use for a long time.
- Wing Yew


&gt; Collision detected while generating classnames for (except-case) identical schema names
&gt; ---------------------------------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-268
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-268
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;    Affects Versions: Version 2
&gt;         Environment: unix
&gt;            Reporter: Mike Barrett
&gt;            Priority: Minor
&gt;
&gt; We have two schemas: 
&gt; slideshow.xsd and slideShow.xsd
&gt; Which have identical names, except case. The issue is that it seems that this causes
a name collision, and causes the generated class name to have a number inserted:
&gt; slideshow.xsd --&gt; SlideshowDocumentImpl
&gt; slideShow.xsd --&gt; SlideShowDocument2Impl
&gt; now if you remove the '2' from the slideShow class, you still have two unique java class
names. Therefore, I don't see the need to append a number to the generated name.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (XMLBEANS-268) Collision detected while generating classnames for (except-case) identical schema names</title>
<author><name>&quot;Mike Barrett (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c370356170.1257192899390.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c370356170-1257192899390-JavaMail-jira@brutus%3e</id>
<updated>2009-11-02T20:14:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/XMLBEANS-268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12772640#action_12772640
] 

Mike Barrett commented on XMLBEANS-268:
---------------------------------------

Wing Yew Poon -

Any reason for the won't fix?

&gt; Collision detected while generating classnames for (except-case) identical schema names
&gt; ---------------------------------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-268
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-268
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;    Affects Versions: Version 2
&gt;         Environment: unix
&gt;            Reporter: Mike Barrett
&gt;            Priority: Minor
&gt;
&gt; We have two schemas: 
&gt; slideshow.xsd and slideShow.xsd
&gt; Which have identical names, except case. The issue is that it seems that this causes
a name collision, and causes the generated class name to have a number inserted:
&gt; slideshow.xsd --&gt; SlideshowDocumentImpl
&gt; slideShow.xsd --&gt; SlideShowDocument2Impl
&gt; now if you remove the '2' from the slideShow class, you still have two unique java class
names. Therefore, I don't see the need to append a number to the generated name.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Assigned: (XMLBEANS-260) Calling SchemaType.isSkippedAnonymousType() can throw a NPE</title>
<author><name>&quot;Wing Yew Poon (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c1802055628.1257191999701.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1802055628-1257191999701-JavaMail-jira@brutus%3e</id>
<updated>2009-11-02T19:59:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wing Yew Poon reassigned XMLBEANS-260:
--------------------------------------

    Assignee: Wing Yew Poon

&gt; Calling SchemaType.isSkippedAnonymousType() can throw a NPE
&gt; -----------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-260
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-260
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;          Components: XmlObject
&gt;    Affects Versions: Version 2.1
&gt;         Environment: Java 1.5, Windows XP
&gt;            Reporter: Luke Peters
&gt;            Assignee: Wing Yew Poon
&gt;             Fix For: Version 2.1
&gt;
&gt;
&gt; If isSkippedAnonymousType()  is called on a SchemaType instance that does not have _outerSchemaTypeRef
set, then a NPE will be thrown. Example:
&gt;   MyXmlBean myBean = MyXmlBean.Factory.newInstance();
&gt;   boolean isSkipped = myBean.schemaType().isSkippedAnonymousType();  &lt;- throws a NPE
&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.
&gt; Current code:
&gt;     public boolean isSkippedAnonymousType()
&gt;         { return  _outerSchemaTypeRef.get().getBaseType() == this ||
&gt;                 _outerSchemaTypeRef.get().getContentBasedOnType() == this; }
&gt; Potential fix:
&gt;     public boolean isSkippedAnonymousType()
&gt;         { return _outerSchemaTypeRef == null ? false : _outerSchemaTypeRef.get().getBaseType()
== this ||
&gt;                 _outerSchemaTypeRef.get().getContentBasedOnType() == this; }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Assigned: (XMLBEANS-262) Line ending behavior inconsistent when using save(OutputStream)</title>
<author><name>&quot;Wing Yew Poon (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c804780464.1257191760165.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c804780464-1257191760165-JavaMail-jira@brutus%3e</id>
<updated>2009-11-02T19:56:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wing Yew Poon reassigned XMLBEANS-262:
--------------------------------------

    Assignee: Radu Preotiuc-Pietro

Radu, isn't this (the behavior reported) by design?

&gt; Line ending behavior inconsistent when using save(OutputStream)
&gt; ---------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-262
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-262
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;          Components: XmlObject
&gt;    Affects Versions: Version 2.1
&gt;         Environment: Windows, JDK 1.5.0_06
&gt;            Reporter: Raman Gupta
&gt;            Assignee: Radu Preotiuc-Pietro
&gt;            Priority: Minor
&gt;
&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 http://www.w3.org/TR/REC-xml/#sec-line-ends, this
sometimes causes problems with other tools or code.
&gt; Here is a code snippet to reproduce:
&gt; XmlObject  x = XmlObject.Factory.parse("&lt;root&gt;\r\n&lt;test/&gt;\r\n&lt;/root&gt;");
&gt; OutputStream o = new FileOutputStream("out.xml");
&gt; x.save(o);
&gt; o.close();
&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.  In other words, line endings do not match either the
line endings provided in the input XML, or the platform default value on Windows.
&gt; I suppose there are several options for fixing this:
&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
&gt; 2) That the output XML uses the System property and makes all line endings consistent.
&gt; 3) Some combination of the above with new XmlOption's settings.
&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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (XMLBEANS-268) Collision detected while generating classnames for (except-case) identical schema names</title>
<author><name>&quot;Wing Yew Poon (JIRA)&quot; &lt;xmlbeans-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xmlbeans-dev/200911.mbox/%3c317516120.1257191460239.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c317516120-1257191460239-JavaMail-jira@brutus%3e</id>
<updated>2009-11-02T19:51:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XMLBEANS-268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Wing Yew Poon resolved XMLBEANS-268.
------------------------------------

    Resolution: Won't Fix

&gt; Collision detected while generating classnames for (except-case) identical schema names
&gt; ---------------------------------------------------------------------------------------
&gt;
&gt;                 Key: XMLBEANS-268
&gt;                 URL: https://issues.apache.org/jira/browse/XMLBEANS-268
&gt;             Project: XMLBeans
&gt;          Issue Type: Bug
&gt;    Affects Versions: Version 2
&gt;         Environment: unix
&gt;            Reporter: Mike Barrett
&gt;            Priority: Minor
&gt;
&gt; We have two schemas: 
&gt; slideshow.xsd and slideShow.xsd
&gt; Which have identical names, except case. The issue is that it seems that this causes
a name collision, and causes the generated class name to have a number inserted:
&gt; slideshow.xsd --&gt; SlideshowDocumentImpl
&gt; slideShow.xsd --&gt; SlideShowDocument2Impl
&gt; now if you remove the '2' from the slideShow class, you still have two unique java class
names. Therefore, I don't see the need to append a number to the generated name.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org



</pre>
</div>
</content>
</entry>
</feed>
