1

Closed

Move type def for rss element in-line for improved compativility with Java 1.6 tools

description

fgaucho
Sep 15 at 4:24 AM
 
The only minor change I was forced to do in order to compile the code using Java's wsimport was in the element RSS, since JAXB marshaler and unmarshealer doesn't includes the @XmlRoot annotation in elements that has no children.
 
So, the change to make codeplex workable with Java 1.6 standard tools is:
 
before:
 
<xs:element name="rss" type="Rss"/>
<xs:complexType name="Rss">
...
</xs:complexType>
 
after:
 
<xs:element name="rss">
    <xs:complexType>
        <xs:sequence>
            <xs:element name="channel" type="RssChannel" />
            <xs:any namespace="##other" processContents="lax" minOccurs="0"
                maxOccurs="unbounded" />
        </xs:sequence>
        <xs:attribute name="version" type="xs:decimal" use="required"
            fixed="2.0" />
        <xs:anyAttribute namespace="##any" />
    </xs:complexType>
</xs:element>
From discussion thread:
http://www.codeplex.com/rss2schema/Thread/View.aspx?ThreadId=35668
Closed Sep 23, 2008 at 4:12 AM by jthelin

comments

wrote Sep 23, 2008 at 4:12 AM

Resolved with changeset 23047.