[Pixlib] [Lowra] - XMLToObject like
anga
andregabriel at free.fr
Wed Sep 19 11:24:47 PDT 2007
thanks for your help. but in 'XMLToObjectDeserializer ' in Lowra the
'type' attribute is with an uppercase. like 'String'
I tried again and I wonder maybe it's an XrayTracer issue. [!?]
anga
Edgars Simsons a écrit :
> instead of having type="String" try type="string". this thing is case
> sensitive...
>
> 2007/9/19, anga <andregabriel at free.fr>:
>
>> hello guys,
>>
>> face to the lack of answers.. :( I did a thing who made the trick, but
>> I'm quite sure it's not a good way..
>>
>> I simply use a copy of 'XMLToObjectDeserializer ' in which I commented this
>> part in 'deserializeNode'
>>
>> /*
>> obj["attribute"] = {} ;
>> for (var i:int = 0 ; i < node.attributes().length() ; i++)
>> {
>> var nom:String = String(node.attributes()[i].name());
>> obj["attribute"][nom] = node.attributes()[i] ;
>>
>> }
>> */
>>
>> as I don't use any attributes..
>>
>> is it a kind of bug ?
>> If one of you know how to do it working more correctly, be very welcome..
>>
>> anga
>>
>>
>>
>>
>> anga a écrit :
>> hi everyone,
>>
>> I'm trying to use Lowra and I don't know how to retrieve an object (like in
>> Pixlib) from an XML file loaded via XMLLoader..
>>
>>
>> //////////////////////////////////////
>> <?xml version="1.0" standalone="no"?>
>> <BOOK>
>> <TITLE type="String">titre du livre</TITLE>
>> <AUTHOR type="String">auteur du livre</AUTHOR>
>> <PUBLISHER type="String">l'editeur du livre</PUBLISHER>
>> </BOOK>
>> //////////////////////////////////////////////
>>
>> _oXml = new XMLLoader ( new XMLToObjectDeserializer ( ) );
>>
>> in 'onLoadInit ( e :LoaderEvent ) :
>> a trace (with a restrictive recursivity to 10 - xray : Debug) of :
>> _oXml.getDeserializer ( ).deserialize ( oVar, XMLLoaderEvent ( e ).getXML (
>> ) ) ;
>> give me :
>>
>> TITLE: [Object]
>> attribute: [Object]
>> type: String
>> 0: String
>> 0: String
>> 0: String
>> 0: String
>> 0: String
>> 0: String
>> 0: String
>> 0: String
>> value: titre du livre
>> PUBLISHER: [Object]
>> attribute: [Object]
>> type: String
>> 0: String
>> 0: String
>> 0: String
>> 0: String
>> 0: String
>> 0: String
>> 0: String
>> 0: String
>> value: l'editeur du livre
>> AUTHOR: [Object]
>> attribute: [Object]
>> type: String
>> 0: String
>> 0: String
>> 0: String
>> 0: String
>> 0: String
>> 0: String
>> 0: String
>> 0: String
>> value: auteur du livre
>>
>> ///////////////////////////////////////////
>>
>> is someone could help me to understand what I'm doing wrong ?
>>
>> thanks for advance
>>
>> anga
>>
>>
>> ________________________________
>>
>> _______________________________________________
>> Pixlib mailing list
>> Pixlib at osflash.org
>> http://osflash.org/mailman/listinfo/pixlib_osflash.org
>>
>>
>>
>> _______________________________________________
>> Pixlib mailing list
>> Pixlib at osflash.org
>> http://osflash.org/mailman/listinfo/pixlib_osflash.org
>>
>>
>>
>
> _______________________________________________
> Pixlib mailing list
> Pixlib at osflash.org
> http://osflash.org/mailman/listinfo/pixlib_osflash.org
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/pixlib_osflash.org/attachments/20070919/8665c565/attachment-0001.html
More information about the Pixlib
mailing list