hi. I am trying to map a news feed using the atom file, so that I can validate the generated files.
The problem is that I have an object that has inside a text node


the part of the xml file should look something like this:
 <content xml:lang="es_ES" type="text/plain" mode="xml" >just a test</content>

the thing, is that by using this mapping code:
<class name="com.hola.feeds.atom.Content" auto-complete="true">
    <field name="_lang" get-method="getLang" set-lang="setLang" type="string">
        <bind-xml name="xml:lang" node="attribute"/>
    </field>
</class>

I become this xml:
<content xml:lang="es_ES" type="text/plain" mode="xml" />

the com.hola.feeds.atom.Content class has a method that is called setContent that should provide the text for the text node, but I dont know how to tell the mapping to do that.
I also have the auto-complete directive set to true. shouldnt this make what I want automatically?


thanks in advance



----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev

Reply via email to