one more thing that i noticed:

i call
xmlobject = unmarshaller.unmarshal(node);
in a loop over all children of the <root> element of my xml document:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<PropertyType><name>VOLUME</name><description>Integer number of any kind of transactions.</description><id>3</id></PropertyType>
<PropertyType><name>PRICE</name><description>The price of a given equity in a given currency</description><id>2</id></PropertyType>
<PropertyType><name>DATETIME</name><description>The datetime at which an observation was made.</description><id>1</id></PropertyType>
<Property><type>2</type><name>MIN-DAY-PRICE</name><description>The minimum price of an equity for a given day in a given currency.</description><id>1</id></Property>
</root>


but even if i have a definition of PropertyType with id:2 in my xml file the IDResolver is called for this id? I thought that the unmarshaller would keep an object map of already created objects and that references would be resolved from the xml file if the elements are defined there?

the xml file (except the <root> element which i added by hand) was created by calling:
marshaller.marshal(volume);
marshaller.marshal(price);
marshaller.marshal(datetime);
marshaller.marshal(min_day_price);


i actually came to the conclusion that the current behaviour is good as it is even if it is "unintuitive".
--
Christian Schuhegger
http://www.el-chef.de/




----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev

Reply via email to