I've got xml which basically is formatted like this:
<content>
<headline>
Planet | Earth | Country | UK | Name | John | Job | Sales | Hobby | Fishing
</headline>
</content>
I'd like something like this:
if (PickContent["Name"] == 'John') {
Right now I'm using the slice like this:
var pickContentName:Array;
pickContentName = pickContentName.slice(5,6);
but to have it something like this would be much better for me:
var pickContentName:Array
pickContentName = pickContent[name]
So "pickContentName = John"
So basically, having it so that I can reference the content, not from where it is in the XML but what the name is called. The way I have it right now, if I had more things to the XML before [5,6] everything will go out of order.
Prior to this code, I do have split so that's already in the bag.