Re: [castor-dev] Castor XML - duplicate bind-xml names

2005-02-28 Thread Keith Visco
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

[castor-dev] Castor XML - duplicate bind-xml names

2005-02-28 Thread david . hyne
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

[castor-dev] Building on Java 1.5 (was RE: "unable to find FieldDescriptor" when using auto-naming with location attribute)

2005-02-28 Thread Daniel Dyer
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. --

[castor-dev] RE: "unable to find FieldDescriptor" when using auto-naming with location attribute

2005-02-28 Thread Daniel Dyer
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