Topic
  • 2 replies
  • Latest Post - ‏2013-03-21T21:26:51Z by Codeoline
Codeoline
Codeoline
141 Posts

Pinned topic IXml to String

‏2013-03-21T20:21:11Z |
I have an IXml variable
IXml RetrieveOneReg = retrieveOneReg(webAppAccess, counter);

that contains the following information.

<row>
<counter>9125</counter>
<dd_year>2013</dd_year>
<reg_type>D</reg_type>
<dealer_num>19</dealer_num>
<state>FL</state>
<district>T</district>
<fname>SAM</fname>
<lname>SMITH</lname>
<badge>TEST</badge>
</row>

I would like to use these attributes in a String compareTo method, but I need to get them into Strings to do that.
How do I get these attributes into Strings?
I tried the following but it does not work.

String new_lname = RetrieveOneReg.getAttribute(lname);

Thank You
Updated on 2013-03-21T21:26:51Z at 2013-03-21T21:26:51Z by Codeoline
  • Dinger
    Dinger
    117 Posts

    Re: IXml to String

    ‏2013-03-21T20:28:54Z  
    Try this

    String new_lname = RetrieveOneReg.getText("lname");

    The content of this post is my own and does not necessarily represent the positions, strategies, or opinions of IBM.
  • Codeoline
    Codeoline
    141 Posts

    Re: IXml to String

    ‏2013-03-21T21:26:51Z  
    • Dinger
    • ‏2013-03-21T20:28:54Z
    Try this

    String new_lname = RetrieveOneReg.getText("lname");

    The content of this post is my own and does not necessarily represent the positions, strategies, or opinions of IBM.
    Thats it Thank you very much.