Sto per sviluppare un'applicazione usando Sencha touch. Il problema che sto affrontando in questo momento è il codice Sencha dovrebbe leggere il seguente XML ("data.xml" e visualizzare notizie, articoli ...), qualche esperto che può aiutare qui per favore?Leggi XML usando Sencha
<ns2:categories>
<category>
<catId>96</catId>
<title>News</title>
</category>
<category>
<catId>97</catId>
<title>Articles</title>
</category>
</ns2:categories>
E quando clicco su Notizie come esempio dovrebbe leggere quel particolare elemento "recordId" in "data_read.xml" e visualizzare "origUrl", "titolo", "dati" .la data_read.xml sembra sotto ..
<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>
È possibile in Sencha?
Sì, l'ho verificato, può leggere il file xml ma il problema si verifica quando provo a leggere il prossimo file xml ... – user580950
quindi aggiungere l'errore al tuo post in modo che possiamo aiutare –