help with XMLElement

C

c

I have an XMLElement that looks like this:

<IRS E="-17"/>

I need the value of E in an int and thought I could do this:
int interror = thexmlElement.getIntAttribute("IRS");

but that doesn't seem to do the trick.

What am I missing here?

thanks.

c
 
C

c

I have an XMLElement that looks like this:

<IRS E="-17"/>

I need the value of E in an int and thought I could do this:
int interror = thexmlElement.getIntAttribute("IRS");

but that doesn't seem to do the trick.

What am I missing here?

thanks.

c

Figured it out. Silly me.

getInstAttribute("E") does the trick.

c
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Help with Github??? 2
Help with code 0
I need help with a Gemini prompt 1
Help with Creating a Looping Procedure 1
Help with code 4
HELP WITH MediaSource 2
Help with Loop 0
Arduino Code Please Help 0

Members online

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top