I need to be able to read an interger from an xml attribute. I am not see the answer. I have decoded the entire document except for this. Can anyone help
I need to get the size attribute into and int so I can use it in a function.
The above code gives me a string I have tried to cast it without success. I am in need of a bit of help
thanks
haunter@battlestrata.com
Code:
<report>
<Section>
<Header bookmark="Header1">name</Header>
<DataDir>c:\blaj\blac</DataDir>
<Data type="file" bookmark="Insert_Graphic">
<Identifier font="Arial" size="10">
<name>gate</name>
<ip_if>address_11</ip_if>
</Identifier>
<Identifier font="Arial" size="10">
<name>gate2</name>
<ip_if>address_11</ip_if>
</Identifier>
<Identifier font="Arial" size="10">
<name>Leader</name>
<ip_if>address_11</ip_if>
</Identifier>
<Identifier font="Arial" size="10">
<name>Victory</name>
<ip_if>address_11</ip_if>
</Identifier>
</Data>
</Section>
</report>
I need to get the size attribute into and int so I can use it in a function.
Code:
int strSize = nlIdentifier.Item(i).Attributes["size"].Value;
thanks
haunter@battlestrata.com