here's the relevant section from the dtd:
<!ELEMENT field ( description?, sql?, bind-xml?, ldap? )>
<!ATTLIST field
name NMTOKEN #REQUIRED
type NMTOKEN #IMPLIED
required ( true | false ) "false"
direct ( true | false ) "false"
lazy ( true | false ) "false"
get-method NMTOKEN #IMPLIED
set-method NMTOKEN #IMPLIED
create-method NMTOKEN #IMPLIED
collection ( array | vector | hashtable | collection | set | map ) #IMPLIED>
It sounds as if you want to use the bind-xml element.
-richard
-----Original Message-----
From: Bruno THOMAS [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 8:46 AM
To: [EMAIL PROTECTED]
Subject: [castor-dev] bind-xml name
Hi,
I'm trying to read an XML file provided by a client. We developed the java
objects corresponding to the XML structure. I thought that I just could
change the names of the xml fields (they are all upper case) with the field
<bind-xml ...> in the mapping file but for the moment it has no effect.
I tried to marshall java objects into an XML file, it works but the name of
the tags seem to be the same, like if it was using Java introspection.
I know that there has been questions (i went first on the list-archive) but I
did not find a solution.
So, is there a castor configuration property to turn on, to take into account
the bind-xml field of mapping file ?
Are <xml ...> and <bind-xml...> the same tags ? (it seems yes)
Here is how i declare the fields :
<field name="titreOriginal" type="string">
<sql name="titre_original" type="char" />
<xml name="TITREORIGINAL" node="element" />
</field>
Do you see a typical mistake I could make ?
Thank you for your time...
Best Regards
Bruno Thomas
--
alea
12 rue Ampere
38000 Grenoble
http://www.alea.fr
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev