Forum
17:35
19/10/2010
Importing XML from file works fine: (the file contains the same data that you can see below for xmlstring import)
{
impurl:"grid_source_mini.xml",
imptype: 'xml',
xmlGrid :{config: "roots>grid", data: "roots>rows"}
});
When I want to use the same data with "xmlstring" import, nothing happens or I get
Uncaught exception: Syntax error, unrecognized expression: #
imptype: 'xmlstring',
impstring: '<roots><grid><colModel><name>P1</name><sortable>false</sortable><resizable>true</resizable></colModel><colModel> <name>P2</name><sortable>false</sortable><resizable>true</resizable></colModel><colNames>Property 1</colNames><colNames>Property 2</ colNames><datatype>xml</datatype></grid><rows><row id="as1234"><cell>doc name 1</cell><cell>bla blha bla</cell></row></rows></roots>',
xmlGrid :{config: "roots>grid", data: "roots>rows"},
});
I need to send to the client a lot of configuration data in one file, including Grid config/data for several grids.
That is why I'm not using XML import, but I want to use xmlstring.
Can anyone tell me why the same data works in the first example but fails in the second?
Is there a bug in the string to doc conversion that happens in import.js?
Thanks for any help!
Most Users Ever Online: 715
Currently Online:
27 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66