下面有一个xml文件。
<?xml version="1.0" encoding="utf-8"?>
<Rows xmlns="">
<Row>"
<Column0 title="Count"></Column0>
<Column1 title="Quantity"></Column1>
<Column2 title="Amount"></Column2>
<Column3 title="Sample Time 24 Hrs">12:25</Column3>
<Column4 title="Sample Time AM/PM">12:25PM</Column4>
<Column5 title="Sample Date"></Column5>
<Column6 title="Sample Timestamp"></Column6>
<Column7 title="Name"></Column7>
<Column8 title="paidOrNot"></Column8>
</Row>
<Row>
<Column0 title="Count">-2,147,483,648</Column0>
<Column1 title="Quantity">3.5</Column1>
<Column2 title="Amount">$43.5</Column2>
<Column3 title="Sample Time 24 Hrs">12:25</Column3>
<Column4 title="Sample Time AM/PM">11:59PM</Column4>
<Column5 title="Sample Date">2012-07-20</Column5>
<Column6 title="Sample Timestamp">2012-07-20 12:25</Column6>
<Column7 title="Name">abcd</Column7>
<Column8 title="paidOrNot">N</Column8>
</Row>
<Row>
<Column0 title="Count">2,147,483,647</Column0>
<Column1 title="Quantity">3.5</Column1>
<Column2 title="Amount">$43.5</Column2>
<Column3 title="Sample Time 24 Hrs">12:25</Column3>
<Column4 title="Sample Time AM/PM">11:59PM</Column4>
<Column5 title="Sample Date">2012-07-20</Column5>
<Column6 title="Sample Timestamp">2012-07-20 12:25</Column6>
<Column7 title="Name">abcd</Column7>
<Column8 title="paidOrNot">N</Column8>
</Row>
</Rows>
当我解析它时,在元素具有start和end元素但没有值的情况下调用didEndElement后调用foundCharacters。我假设委托方法按照didStartElement,foundcharacters,didEndElement的顺序执行。但我觉得我错了。任何想法?
谢谢, Jignesh
答案 0 :(得分:0)
我不知道NSXMLParser不会忽略在我的情况下出现问题的空格。