Getting the value of an Element in Cocoa using TouchXML

后端 未结 3 543
春和景丽
春和景丽 2020-12-05 20:36

I am using TouchXml because of the given limitations of NSXML on the actual iPhone. Anyway, I\'m just starting out with Objective-C, I come from a C# background, and felt li

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-05 21:02

    I had a similar problem. ANY selection on an XML that has a namespace specified (xmlns="http://somenamespace") will result in no nodes found. Very strange considering it does support the additional namespace formats such as xmlns:somenamespace="http://somenamespace".

    In any case, by far the easiest thing to do is do a string replace and replace xmlns="http://tempuri.org/webservices with an empty string.

    Overall I like touchxml, but I can't believe this bug still exists.

提交回复
热议问题