我即将开发一个使用Sencha touch的应用程序。我现在面临的问题是Sencha代码应该读取以下XML(“data.xml”并显示新闻,文章...),请帮助这里的任何专家?使用Sencha读取XML
<ns2:categories>
<category>
<catId>96</catId>
<title>News</title>
</category>
<category>
<catId>97</catId>
<title>Articles</title>
</category>
</ns2:categories>
当我在新闻点击作为一个例子应该阅读特定“的recordId”元素“data_read.xml”,并显示“origUrl”,“标题”,“数据” .the data_read.xml样子以下..
<ns2:records>
<record>
<recordId>96</recordId>
<title>123 Lifted</title>
<author>|</author>
<published>2010-01-20T14:36:00.000-08:00</published>
<origUrl>
http://www.abc.com/</origUrl>
<numComments>0</numComments>
<data>
<![CDATA[<p>According to a report on sd asdas das asdasd asdasd hjjasd .</p>
<p> </p>
<p>This is a landmark vote, and a harbinger of change for this extremely traditional area that also has banned the use of metal r bolt.</p>
<p> </p>
<p>Check out: abc.com and xyz .com for more information.</p>
<p class="modifydate">Last Updated (Wednesday, 20 January 2010 22:36)</p>]]>
</data>
</record>
</ns2:records>
这可能在Sencha?
是的,我检查了它,它可以读取xml文件,但是当我尝试读取下一个xml文件时发生问题... – user580950 2011-01-30 12:08:05