Sure. Have a look at

http://castor.org/xml-mapping.html#6.-Location-attribute

to see how you could use the 'location' attribute.

Regards
Werner
Castor, committer

davecass wrote:
> Hi, This may be a really simple question - im pretty new to this......
> 
> I have 2 classes mapping to
> 
> <user><moneytotable /></user>
> 
> <user><moneyfromtable /></user>
> 
> My mappings like that this:
> 
> <class name="to.request.PokerCashMoneyToTableRequestTO">
> <map-to xml="moneytotable"/>
> </class>
> 
> <class name="to.request.PokerCashLeaveTableRequestTO">
> <map-to xml="moneyfromtable"/>
> </class>
> 
> I get an error: payment.xml.parser.XMLParseException:
> org.xml.sax.SAXException: The class for the root element 'user' could not be
> found.
>       
> However, if i put map-to xml="user" for both of them, then it loads wrong
> class for the xml.
> 
> I'd like to specify an XPath statement in the <map-to xml> element or
> something similar.
> 
> Can i do this?
> 
> 


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to