Hi,

I'm currently facing an issue with castor when parsing a XML input stream.
The issue is that I use the location tag to map a value from the XML stream
but castor seems to ignore the location tag. The variable is always null.

This is the relevant part from my mapping file. The mapping works for all
the other mappings - just this one is "ignored" by castor. Could the "-" in
the location tag be the problem? If yes how can I work around this?

<mapping>
<class name="MyJavaClass">
<map-to xml="rules" />
...
<field name="link" type="string">
      <bind-xml name="link" location="rb-link/link"/>
</field>
...
</class>
</mapping>

This is the part from the XML stream which I try to map.

<rules>
...
<rb-link>
     <link>
          <link>12.rb_firewall.1017</
link>
     </link>
</rb-link>
...
</rules>

Many thanks for your help in advance.

Reply via email to