my sample xml is
<id>
<r rn="1">
<vw n="address" v="Mycomp" />
<vw n="description" v="AdminOU" />
<vw n="identifier" v="1" />
</r>
<r rn="2">
<vw n="address" v="Mycomp" />
<vw n="description" v="SASDesignOU" />
<vw n="identifier" v="2" />
</r>
</id>
i have 3 columns in my grid ,
{
type: 'xml',
data: '/id/r/vw',
model: {
id: 'rn',
fields: {
id: '@rn',
address: { field: '@v'},
description: '@v',
identifier : '@v'
}
}
}
since my <element> having duplicated in the <r> node, the output is coming as
address description identifire
--------- -------------- -----------
Mycomp Mycomp Mycomp
AdminOU AdminOU AdminOU
1 1 1
like that is coming, but i need the grid row values should be [ mycomp, adimin ou, 1], in <vw> element i have @n, based upon the attribute value can i load the grid as i wish.. can u please help me regarding this
<id>
<r rn="1">
<vw n="address" v="Mycomp" />
<vw n="description" v="AdminOU" />
<vw n="identifier" v="1" />
</r>
<r rn="2">
<vw n="address" v="Mycomp" />
<vw n="description" v="SASDesignOU" />
<vw n="identifier" v="2" />
</r>
</id>
i have 3 columns in my grid ,
{
type: 'xml',
data: '/id/r/vw',
model: {
id: 'rn',
fields: {
id: '@rn',
address: { field: '@v'},
description: '@v',
identifier : '@v'
}
}
}
since my <element> having duplicated in the <r> node, the output is coming as
address description identifire
--------- -------------- -----------
Mycomp Mycomp Mycomp
AdminOU AdminOU AdminOU
1 1 1
like that is coming, but i need the grid row values should be [ mycomp, adimin ou, 1], in <vw> element i have @n, based upon the attribute value can i load the grid as i wish.. can u please help me regarding this