PDA

View Full Version : [FIXED-1011] Bug in XmlWriter.js



borillo
31 May 2010, 12:20 PM
Hi all,

The defined template in XmlWriter.js class is wrong:

tpl: '<tpl for="."><\u003fxml version="{version}" encoding="{encoding}"\u003f><tpl if="documentRoot"><{documentRoot}><tpl for="baseParams"><tpl for="."><{name}>{value}</{name}</tpl></tpl></tpl><tpl if="records.length&gt;1"><{root}></tpl><tpl for="records"><{parent.record}><tpl for="."><{name}>{value}</{name}></tpl></{parent.record}></tpl><tpl if="records.length&gt;1"></{root}></tpl><tpl if="documentRoot"></{documentRoot}></tpl></tpl>',

In baseParams definition, "name" tag is not well-formed. Correction:

tpl: '<tpl for="."><\u003fxml version="{version}" encoding="{encoding}"\u003f><tpl if="documentRoot"><{documentRoot}><tpl for="baseParams"><tpl for="."><{name}>{value}</{name}></tpl></tpl></tpl><tpl if="records.length&gt;1"><{root}></tpl><tpl for="records"><{parent.record}><tpl for="."><{name}>{value}</{name}></tpl></{parent.record}></tpl><tpl if="records.length&gt;1"></{root}></tpl><tpl if="documentRoot"></{documentRoot}></tpl></tpl>',

Please, take also a look to another XML related problem regarding DataWriter.js:

http://www.extjs.com/forum/showthread.php?98819-Problem-with-GridPanel-and-RowEditor-with-a-restful-Store

Regards,
Ricardo

Jamie Avins
1 Jun 2010, 9:53 AM
[type]: fix
[module]: XmlWriter
[id]: #1011
[desc]: Fixes #1011. Fixed an error in the xtemplate definition.

borillo
1 Jun 2010, 9:24 PM
Hi again,

Could you take a look at the DataWriter.js problem too? I you want, i can open a different thread ...

Regards,
Ricardo


[type]: fix
[module]: XmlWriter
[id]: #1011
[desc]: Fixes #1011. Fixed an error in the xtemplate definition.