xml解析iphone,目标C?
我想获取 xml 标签之间的数据?如何导航?并获取值..
我使用来自谷歌代码的wsdl2objc:http://code.google.com/p /wsdl2objc/
输出soapbody如下:
请阅读此处的说明:http://code.google.com/p/wsdl2objc/wiki/使用说明
我的头文件:#import "MService.h"
如何获取图像源和文本值???
请帮我....
i want to get data between xml tags? how to navigate? and get values..
im using wsdl2objc from google code:http://code.google.com/p/wsdl2objc/
output soapbody follows:
read instruction here: http://code.google.com/p/wsdl2objc/wiki/UsageInstructions
my header file: #import "MService.h"
how to get image source and text value????
please help me....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
据我了解,这是从 SOAP 响应中提取文本数据的部分。
顺便说一句,您需要通过 SAX 或 DOM 处理响应?给定 URL 中的第一个示例涉及 DOM 使用,而第二个示例涉及 SAX。
更重要的是我不能说。我猜你必须阅读手册或找到使用过此工具的人。
Ок as far as I understand this is a part which extracts text data from your SOAP response.
BTW you need response to be processed via SAX or DOM? First example in given URL refers to DOM usage, whereas the second to SAX.
More than that I can not tell. Guess you have to read manual or find someone, who worked with this.
使用 NSXMLParser、NSXMLParserDelegate 进行 xml 解析,您可以获得具有正确值的回调:
parser:didStartElement:namespaceURI:qualifiedName:attributes:
解析器:找到字符:
解析器:didEndElement:namespaceURI:qualifiedName:
参考: http://developer.apple.com/library/ios/#documentation/cocoa/reference/NSXMLParserDelegate_Protocol/Reference/Reference.html
Use NSXMLParser, NSXMLParserDelegate for xml parsing, you can get the callbacks with proper values:
parser:didStartElement:namespaceURI:qualifiedName:attributes:
parser:foundCharacters:
parser:didEndElement:namespaceURI:qualifiedName:
Ref: http://developer.apple.com/library/ios/#documentation/cocoa/reference/NSXMLParserDelegate_Protocol/Reference/Reference.html
嘿,我使用 sudzc.com 得到了结果,
仔细检查上面的 xml,你会得到答案:)
hey i got the result using sudzc.com
carefully check with the above xml, u will get the answer :)