Hi David,
How do you distinguish between whether something is a Contract or a
Payment if they both use the Contract element name?
Castor basically follows the rules set forth in XML Schema, which
doesn't allow two sibling elements to have the same name and different
types. Basically if you have
Hi,
I have a Response POJO that has two attributes: contracts and payments. The
XML message I receive from SOAP for the element can have only
one sub-element whether contract or payment, cannot be both at the same
time. Castor gives error because I have two same bind-xml element names
(contract
I forgot to mention that I needed to change the build.xml file to get
Castor to build with Java 1.5. The javac tasks need the source="1.4"
and target="1.4" attributes to be specified. It might be worth somebody
with commit privileges making these changes to the CVS version of this
file.
Dan.
--
I have been digging around in the source code and I think this is a bug
in the UnmarshallHandler class. There is a count variable in the
startElement(String name, String namespace, AttributeSet atts) method
that seems to be causing some problems (the section of code in question
begins on line 1724