Get the name of all Xml nodes and Attributes
Posted: March 13th, 2008 | Author: Ivan Valadares | Filed under: Actionscript3, Code | 13 Comments »How many times do we have an XML that comes from a webservice or from a sourceÂ
that we don't know. In these times getting that xml to a file can be cumbersome (imagine that you have authentication). So how about a nice little way to see all the node and attribute names in that xml, here's how:
Take this xml as an example:
file
For this file we'd get something like:
NODE NAME: Mouse
NODE NAME: ScreenSaver
ATTRIBUTE OF ScreenSaver NAME: desc
NODE CHILD OF ScreenSaver NAME: Active
ATTRIBUTE OF Active NAME: desc
NODE CHILD OF ScreenSaver NAME: File
ATTRIBUTE OF File NAME: desc
NODE CHILD OF ScreenSaver NAME: Time
ATTRIBUTE OF Time NAME: desc
ATTRIBUTE OF Time NAME: min
ATTRIBUTE OF Time NAME: max
ATTRIBUTE OF Time NAME: unit
Hope this helps you out.
Excellent article , i just share it with my friend of Italy. I Stumble UP your blog post , you will notice an increase of traffic within 24 hours for targeted people. Cheers , Jimmy – Chicago City
Its a good comment. Appreciated.
Nice post and clear and concise. Can you expand on the main point please. Also do you have a newsletter? Thanks again
My name is Jeffrey C. Rambach and I read your blog and find in very interesting. This post seems to rank good on search engines. How did you do that?
Did anyone hear about Obama capping pay at $500K for CEO’s of bailed out companies? They act like that’s not a lot of money..
Kenapa ramai isteri tak puas dan kemudian curang dengan suami masing-masing?
Hey…, This is not my first time i come to your blog but i think this is the first time i commenting in, after i see and read your blog post you have a great blog and nice article, i hope you always write usefull information, thanks for sharing !
Very interesting topic. i will subscribe rss feed now. i like it very much.
Nice blog! I found this information very interesting. Thank You
This is awesome. Keep up the good work. Look forward to reading more from you in the future.
Очень даже круто. ОÑобенно третье.
Nice work! very nice blog, keep up the good work. Anna
Very interesting post, I love finding a good quality blog thats not full of rubbish. I would love to do a link exchange.