[Pixlib] XMLToObject
Cédric Néhémie
cartel.com at free.fr
Thu Nov 17 03:12:04 EST 2005
Hi Francis,
Something seems strange in XMLToObject.deserializeData, the line :
o[sName]["data"] = (sType != "xml2o") ?
oXML.childNodes[x].firstChild.nodeValue : oXML.childNodes[x];
if type of the node is not xml2o you use nodeValue to set the data
field. I think that is not to XMLToObject to choose witch of nodeValue
or childNodes use to fill data. The XMLToObjectDeserializer is more
approriate to that task, and that let us choosing xml structure.
Another strange thing is that you have preferred use a "type" attribute
to switch deserializer's behaviour instead of nodename, why have you
decided to chose this alternative?
Regards
Cedric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cartel.com.vcf
Type: text/x-vcard
Size: 219 bytes
Desc: not available
Url : http://osflash.org/pipermail/pixlib_osflash.org/attachments/20051117/a8c0ec09/cartel.com.vcf
More information about the Pixlib
mailing list