-
20 Jul 2007 7:12 AM #1
XmlReader mapping to XML attribute
XmlReader mapping to XML attribute
People,
Hotwo mapping XML attributes in XmlReader like mapping XML Elements ?
I whant:
<item name="" value="" .../>
<item name="" value="" .../>
<item name="" value="" .../>
not this...
<item>
<name></name>
<value></value>
</item>
thanks...
Davi
-
11 Apr 2009 3:18 PM #2
-
14 Apr 2009 3:43 AM #3
Try:
PHP Code:// ...
reader: new Ext.data.XmlReader(
{record: 'item'},
[
{name: 'Name', mapping: '@name'},
{name: 'Value', mapping: '@value'}
]
)
// ...
-
15 May 2009 7:59 AM #4
Mapping into the xml problem
Mapping into the xml problem
Help me somebody! I can't do mapping for these tags:
<grade title="php" number="30015" points="5.00">95</grade>
I need all of data of this tag in my grid, both of attributes and value, but i getting only attributes
xml file look like this:
<?xml version="1.0" encoding="UTF-8" ?>
- <student>
+ <messages del_link_prefix="https://yedion.jce.ac.il/yedion/fire...ege&arguments=">
- </messages>
+ <courses course_link_prefix="https://yedion.jce.ac.il/yedion/fireflyweb.aspx?">
</courses>
- <grades>
<grade title="יסודות התכנות" number="30015" points="5.00">95</grade>
<grade title="מבוא למסלולי הנדסה" number="91003" points="2.00">92</grade>
<grade title="אלגברה ליניארית" number="30002" points="4.50">92</grade>
<grade title="מבוא לגורמי אנוש" number="30018" points="2.50">70</grade>
</grades>
</student>
-
27 Jun 2011 1:49 AM #5
Same problem here
Same problem here
Working with ExtJS 4.0
I need to populate a grid with XML just in the same form that in your case:
<dicom>
<attr tag="00020000" vr="UL" len="4">180</attr>
<attr tag="00020001" vr="OB" len="2">00\01</attr>
<attr tag="00020002" vr="UI" len="28">1.2.840.10008.5.1.4.1.1.12.2</attr>
<attr tag="00020003" vr="UI" len="46">1.3.46.670589.6.1.0.21521427.2010092109392072</attr>
<attr tag="00020010" vr="UI" len="22">1.2.840.10008.1.2.4.70</attr>
<attr tag="00020012" vr="UI" len="16">1.2.40.0.13.1.1</attr>
...
</dicom>
This is the output generated by a third part Dicom to XML conversion tool. I can get the attribute values, but so far I am not able to get the node values.
-
27 Jun 2011 11:59 PM #6
Getting attributes and main value
Getting attributes and main value
Solved!
That works as expected, at least with Ext JS 4.0
Regards,Code:Ext.define('DicomAttr',{ extend: 'Ext.data.Model', fields: [ {name: 'tag', mapping: '@tag', type: 'string'}, {name: 'vr', mapping: '@vr', type: 'string'}, {name: 'len', mapping: '@len', type: 'int'}, {name: 'value', mapping: '/', type: 'string'} ] });
José Antonio
-
30 Jun 2011 9:23 AM #7
-
16 Jan 2012 4:34 PM #8
trees inside 4 version
trees inside 4 version
I have a tree for which each node (root including) have differents attributes. In which way I can load a full tree : each node with his own model ? !!!
Thanks,
JAD1951


Reply With Quote
