How to reference a value in an XML file
hey guys! have valid xml structure, , in following info:
<app> <settings> <setting name="defaultmoduleslug" value="apples"></setting> <setting name="defaultpageslug" value="oranges"></setting> </settings> <app>
the xml info in application object called application.config.
so, how reference defaultpageslug variable? know can use:
application.config[ 'app' ][ 'settings' ].xmlchildren[ 2 ].xmlattribute[ 'value' ]
however, i'd able reference setting it's name attribute (defaultpageslug) , not assuming it's 2nd element in node. can help?
nevermind, guess can use xpath.
More discussions in ColdFusion
adobe
Comments
Post a Comment