[英]how can i read the integer value from xml document in objective-c
this is my xml document, i want to use the value of id and mlsid in in my 这是我的xml文档,我想在我的ID中使用id和mlsid的值
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 . 我已经创建了一本目标文件簿,其中存储了xml数据的所有值,然后将这些对象放入数组中。 now i am able to retrive the string value but not getting the integer value.
现在,我能够检索字符串值,但不能获取整数值。 this is my object class.
这是我的对象类。
@interface Book : NSObject { @interface书:NSObject {
NSInteger ID;
NSInteger MLSID //Same name as the Entity Name.
}
how to trieve the value of MLSID in the viewcontroller. 如何在视图控制器中挖掘MLSID的值。 or how to print it.
或如何打印。
您需要使用XML解析器,其中有多个可用选项 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.