Posted this on Flash_tiger without any luck. I know about using delete
in E4X XML to delete unwanted XML nodes, but how would you hunt down
through and delete any nodes (of a specific type, say "<module>" nodes
in the example below) that don't have any children?
For example, if myXML happens to look like:
<xml>
<modules>
<module title="apple"/>
<module title="orange">
<node/>
<module>
<module title="banana">
<node/>
<module>
<module title="plum"/>
<module title="pear"/>
<module title="pineapple">
<node/>
<module>
</modules>
</xml>
then with that structure, I would want my code to remove the <module>
nodes that have the "title" attribute values of "apple", "plum", and
"pear" since those have no child nodes.
I know I could figure it out through enough trial and error, but I've
spent enough time on it already. Thought someone here could give a
quick answer. Thanks!
Jason Merrill
Bank of America Global Learning
Shared Services Solutions Development
Monthly meetings on the Adobe Flash platform for rich media experiences
- join the Bank of America Flash Platform Community
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders