
- Forum
- General Help
- XML
- If I do not know the attribute names, can I have some way to get and names & values?
-
I searched the flash help, tupps's faq and this forum's Mar to now history about "attribute" but dont seems to find the answer.
even if I dont know the node name, I can loop on child by child and see their childnode[X].nodename and .nodevalue
for attributes, if I know their name, I can use childnode[X].attributes.Name to get the value.
How about the case if I (actually the running AS in flash) dont know how many and what name is the attributes ? Is there an array to loop to get them
in Flash help XML.attributes it say
Description
===========
Collection (read-write); returns an associative array containing all attributes of the specified XML object.
However, if I trace(childnode[X].attributes[X]) it is undefined.
yes I can use childnode[X].attributes[Name] but then I have to know the attributes name again.
I am not needing it urgently but I just want to know more.
Thanks in advance for any help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|