users@jaxb.java.net

A type to represent a collection of XML elements - how to ?

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Wed, 2 Apr 2008 21:03:25 +0200

Hi there,

I am trying to return a collection of RSS objects from my soap
web-service.... but it seems the structure I created to represent this
collection is not valid:

.... XML reader error: javax.xml.stream.XMLStreamException: ParseError
at [row,col]:[1,93]

to define my type, I used:

                        <xsd:element name="RssCollection">
                                <xsd:complexType>
                                        <xsd:sequence minOccurs="1" maxOccurs="unbounded">
                                                <xsd:element name="rss.collection"
                                                        type="rss20:tRss" />
                                        </xsd:sequence>
                                </xsd:complexType>
                        </xsd:element>

where rss20:tRss is a XML content defined in the rss 2.0 schema ...

my WSDL and my defined types are available here:
https://cejug-classifieds.dev.java.net/source/browse/cejug-classifieds/trunk/cejug-classifieds-server/resources/contract/