Click to See Complete Forum and Search --> : Question about XML Syntax.


Critical
11-26-2007, 02:58 AM
Good day everyone.

I am trying to dissect this code. While the first four lines make sense to me, I am trying to figure out what the <condition> line is exactly doing.

Yes, there is more code to this file and I will put it up if need be.

<ProfileName>\whatever\whatever</ProfileName>
<Mount>False</Mount>
<UseFlight>False</UseFlight>
<Startable>True</Startable>
<Condition ConditionType="2" Parameter="1" NextStep="1" />

Any help would be appreciated.

jkmyoung
11-27-2007, 11:33 AM
This XML appears to be application specific.
Are you using a specific application?

Evilernie
11-29-2007, 05:29 PM
By dissect, I'm assuming that you just want to visually read the data.

The author just decided to code the children as attributes.
<Condition ConditionType="2" Parameter="1" NextStep="1" />

If he chose to do so, he could have written it as:
<Condition>
<ConditionType>2</ConditionType>
<Parameter>1</Parameter>
<NextStep>1</NextStep>
</Condition>