English 中文(简体)
在Pily实现一个有问题的RSS饲料
原标题:Parsing a problematic RSS feed on iPhone

I have a small test app that parses a few RSS feeds. It all goes well for all except for one.

我通过XML的馈电加以扫描,并且注意到,一旦它到达了一个具有“和”的标签,它就失败了。 因此,如果我有这样的话:

<like>beer & barbeque</like>

该记录说,它发现有一种扼杀。

beer

此外,它例外地坠毁。

Error Domain=NSXMLParserErrorDomain Code=68 "Operation could not be completed. (NSXMLParserErrorDomain error 68.)

The most annoying thing is that I don t even need the data from the problematic tag. Any idea how I can work around this?

最佳回答

由于饲料已经失效,因此在<代码>&<space>至&amp; 在你与食品出版商一道打仗,清理他的行为。

饲料必须是有效的XML。 期间

问题回答

Hpple本应能够用平流“messy”超文本。 或许可以处理你的幻灯。





相关问题
how to represent it in dtd?

I have two element action and guid. guid is a required field when action is add. but when action is del it will not appear in file. How to represent this in dtd ?

.Net application configuration add xml-data

I need to add xml-content to my application configuration file. Is there a way to add it directly to the appSettings section or do I need to implement a configSection? Is it possible to add the xml ...

XStream serializing collections

I have a class structure that I would like to serialize with Xstream. The root class contains a collection of other objects (of varying types). I would like to only serialize part of the objects that ...

MS Word splits words in its XML format

I have a Word 2003 document saved as a XML in WordProcessingML format. It contains few placeholders which will be dynamically replaced by an appropriate content. But, the problem is that Word ...

Merging an XML file with a list of changes

I have two XML files that are generated by another application I have no control over. The first is a settings file, and the second is a list of changes that should be applied to the first. Main ...

How do I check if a node has no siblings?

I have a org.w3c.dom.Node object. I would like to see if it has any other siblings. Here s what I have tried: Node sibling = node.getNextSibling(); if(sibling == null) return true; else ...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

热门标签