how can i read the integer value from xml document in objective-c

Posted by uttam on Stack Overflow See other posts from Stack Overflow or by uttam
Published on 2010-05-13T07:40:18Z Indexed on 2010/05/13 7:44 UTC
Read the original article Hit count: 150

Filed under:
|

this is my xml document, i want to use the value of id and mlsid in in my
viewcontroller. how can i read it.

       <Table>
        <ID>1</ID>
       <MLSID>70980420</MLSID>
       <STREET_NO>776</STREET_NO>
       <STREET_NAME>Boylston</STREET_NAME>
      <AreaName>Back Bay</AreaName
      <Table>

i have created one object file book which store the all value of xml data and then i put that objects in the array . now i am able to retrive the string value but not getting the integer value. this is my object class.

@interface Book : NSObject {

    NSInteger ID;
    NSInteger MLSID //Same name as the Entity Name.
}   

how to trieve the value of MLSID in the viewcontroller. or how to print it.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone