Hi,

I am fairly new to castor, so if there is a FM for this then please
tell me to R it.

I am trying to map an XML empty tag to a boolean field in a java
class.  The relevant XML snippet should look something like this:

<field>
        ...
        <primary-key/>
        ...
</field>

Now, if the <primary-key/> tag is present then I want the
corresponding boolean field in my class set to true, and if it is not
present then I want it set to false.

Does Castor provide a way to do this, or should I adopt a different
strategy for my XML (such as <field primary-key="true|false">).

I have read all the documentation I could find on XML mapping and also
searched in moderate depth on themailarchive to no avail.

Thanks
Tom
-- 
Tom Cook
Information Technology Services, The University of Adelaide

"Other people's priorities are endlessly odd."
        - Kingsley Amis

Get my GPG public key: 
https://pinky.its.adelaide.edu.au/~tkcook/tom.cook-at-adelaide.edu.au

Attachment: msg08605/pgp00000.pgp
Description: PGP signature

Reply via email to