我在下面有一个 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>
当我解析它时,当元素具有开始和结束元素但没有任何值时,在调用 didEndElement 之后调用 foundCharacters 。我假设委托方法按 didStartElement、foundcharacters、didEndElement 的顺序执行。但我认为我错了。有任何想法吗?
谢谢,吉涅什