The attibutes property is actually an Object containing all the
attributes for a node, that you can cycle through using a for..in
loop.

hth
-K

On 07/12/05, GregoryN <[EMAIL PROTECTED]> wrote:
> Hello Flashcoders,
>
>   I'd like to save attributes names from XML file as properties of
>   some object. For example:
>
>   XML (fragment):
>   ...
>      <my_node attr1="val1" attr2="val2" />
>   ...
>
>   Result:
>   ...
>   my_object.attr1; // value: val1
>   my_object.attr2; // value: val2
>
>
>   Of course I can assign these props literally:
>   my_object.attr1 = ...myNode.attributes["attr1"];
>   where "myNode" is variable (XMLNode) for my_node in XML file.
>
>   But I want to use more universal way - some function with a loop.
>
> Any help appreciated.
>
> --
> Best regards,
>  GregoryN
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to