Basic Flex XML - how to check a node with a specific attribute exists

lfhost

New Member
Really simple problem, but I am tearing my hair out looking for a solution.I have XML that looks like this:\[code\]<Records> <Application id='1'> ... child elements ... </Application> <Application id='2'> ... child elements ... </Application></Records>\[/code\]I want to check if an Application node exists with a given id. If it doesn't, create it, else just append child elements directly inside it. This should be trivial, but no combination I have tried works.
 
Back
Top