-
11 Sep 2012 7:20 AM #1
Write nested XML
Write nested XML
Hi fellas,
I'm trying to write nested XML data via XmlWriter but all my experiments are failed.
I used model associations, proxy and XML writer.
So, I finally reach this point: maybe I can't write nested XML with ExtJS.
Here's an example of the XML I want to write (and send) to my server app:
How can I write that XML with Ext.data.writer.Xml? Is it possible?Code:<?xml version="1.0" encoding="utf-8" ?> <list> <user> <id>1</id> <name>Wilk</name> <age>25</age> </user> <user> <id>2</id> <name>Kilw</name> <age>52</age> </user> <user> <id>3</id> <name>Ilkw</name> <age>252</age> </user> </list>
Thanks in advance.
Cyaz
-
11 Sep 2012 7:53 AM #2
The writer does not support nesting at this time.
Scott.
-
11 Sep 2012 8:04 AM #3
-
26 Oct 2012 2:42 AM #4
I want to read an XML which has same elements multiple times .
I want to read an XML which has same elements multiple times .
For example an XML:
<root>
<record>
<element>element1</element>
<element>element2</element>
<element>element3</element>
</record>
<record><element>element4</element></record>
<record><element>element5</element></record>
<record><element>element6</element></record>
</root>
I am reading this XML with a model. The mapping used is as follows:
fields: [
{ name: 'record', mapping: 'record > element'}
]
But I can't find the values element2 and element3. Only values element1,element4,element5 nad element6 I got. Please help.
-
19 Feb 2013 4:25 AM #5


Reply With Quote
