Hello,
I am having a difficult time getting the attribute value out of the
SvcFeatureValueDescList field.
I get the value from the field, but I can't seem to get my hands on the
attribute value. Also, if this
eventually does work, is there a direct correspondence between element 0 in
the SvcFeatureValueList
Vector and element 0 in the SvcFeatureValueDescList vector? Or, am I going
about trying to parse
this in the wrong way?
mapping.xml:
...
<class name="Feature">
<field name="svcFeatureName" type="string" > <bind-xml
name="SvcFeatureName"/></field>
<field name="SvcFeatureValueList" type="string" collection="vector" >
<bind-xml name="SvcFeatureValue" node="element"/></field>
<field name="SvcFeatureValueDescList" type="string" collection="vector" >
<bind-xml name="SvcFeatureValDesc" node="attribute"/></field>
<field name="featureName" type="string" > <bind-xml
name="FeatureName"/></field>
<field name="FeatureValueList" type="string" collection="vector" >
<bind-xml name="FeatureValue"/></field>
</class>
...
XML data file:
...
<cdo6:Feature>
<cdo6:SvcFeatureName>CLASS_TIER</cdo6:SvcFeatureName>
<cdo6:SvcFeatureValue
SvcFeatureValDesc="8am-5pm">612</cdo6:SvcFeatureValue>
</cdo6:Feature>
any input would be greatly appreciated!
Mike
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev