xmlreader - jqGrid XML data property load -


i have remote xml data generator emits this:

<list>   <hu.qualitis.opencms.utils.db.dbfile>     <id>8dc66bf4-c39f-44c5-879d-1f3b16dc29be</id>     <name>testfile.txt</name>     ...     <metadata>       <property name="lines" value="5"/>     </metadata>   </hu.qualitis.opencms.utils.db.dbfile> </list> 

my definition of xmlreader follows

xmlreader: {    root: "list",   row: "hu\\.qualitis\\.opencms\\.utils\\.db\\.dbfile",   repeatitems: false,   id: "id" }, 

this works ok. problem metadata part cannot access. tried things like:

colmodel :[    {name:'name', index:'name', width:60},   ...   {name:'metadata>property>lines', index:'name', width:10} ], 

but no avail.

is possible @ configure jqgrid xmlreader read value, or forced change generator?

update

to sum responses: original idea not possible implement.
best solution use json. faster also.
alternative solution modify code generates xml. go this, communication based on xml.
, solution modify xml xslt.

you access attributes of nodes need specify attribute name in square brackets [name] in xmlmap of colmodel e.g.:-

for node

the name attribute of node property require xmlmap:"metadata>property>[name]"

the value attribute of node property require xmlmap:"metadata>property>[value]"


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -