开发者

Unable to parse self closing xml tag

开发者 https://www.devze.com 2023-01-10 01:01 出处:网络
I have a very unusual problem. I am using NSXMLParser to parse XML but it is not being able to parse self closing tag开发者_开发百科s!

I have a very unusual problem. I am using NSXMLParser to parse XML but it is not being able to parse self closing tag开发者_开发百科s! If the XML is something like "< media:something ....... / >", when I parse it and output the elementName in didStartElement: method, there's no output for the particular tag. All other tags which are not self closing are however being displayed. Any idea what is going on and what can be done to fix it?

Thanks in advance! :))


Is there a space between / and > ? Remove it to read as />

0

精彩评论

暂无评论...
验证码 换一张
取 消