Partial XML unmarschalling.

"Noel Sebastien (BIL)" <[email protected]> Mon, 2 Dec 2002 11:20:03 +0100
Newsgroups gmane.comp.java.enhydra.zeus
Message-ID <36F352EB17B31344A167BAF849DD8CE0013DCD62@LLUXVEXC051.bil.int.dexwired.net>
Hi,

I would like to partially unmarschall an XML document into Java objects. =
"Partially" means for me "until a known depth". Note that i can't insert =
a CDATA section because=20
i do not own the input message.

Here is an example :

XML document :

<GinkoRequest version=3D"2">
	<ContextSet name=3D"DwhDbConnectorContextSet">
		<Context name=3D"application">Dwh</Context>
	</ContextSet>
	<ParameterSet name=3D"ParameterSetPassTrough" type=3D"XML" interpreter=3D=
"LIST" externalRef=3D"NONE">
		<Parameter name=3D"CORRELID" type=3D"VALUE" interpreter=3D"STRING" exte=
rnalRef=3D"NONE">ID:3c524551554553545f4541493e3c544543483e3c4f524947</Par=
ameter>
		<Parameter name=3D"MESSAGE" type=3D"CDATA" interpreter=3D"STRING" exter=
nalRef=3D"NONE">
<DOVREQ Version=3D"2"><DOVTEC><DOVORIIDEMSG/><DOVIDEMSG/><DOVORIIDEPRN>NO=
NE</DOVORIIDEPRN><DOVIDEPRN>NONE</DOVIDEPRN><DOVORIMSG>BLS NET</DOVORIMSG=
><DOVDSTMSG>HOST MESSAGE BROKER</DOVDSTMSG><DOVTYPOJT>XML</DOVTYPOJT><DOV=
PIO>5</DOVPIO><DOVTICACC>NONE</DOVTICACC><DOVNUMSEQPAQTEC>NONE</DOVNUMSEQ=
PAQTEC><DOVSVTPAQTEC>NO</DOVSVTPAQTEC><DOVHIS>NONE</DOVHIS></DOVTEC><DOVC=
XT><DOVIDEUSR>DWH_EAI</DOVIDEUSR><DOVORI>BLSNET</DOVORI><DOVDST>DWH</DOVD=
ST><DOVPCS>NONE</DOVPCS><DOVNIVVIS>I</DOVNIVVIS><DOVTYPMSG>Q</DOVTYPMSG><=
DOVACTMSG>DWHRCHRTBLSTCONBASGES</DOVACTMSG><DOVCODLAN>NONE</DOVCODLAN><DO=
VNUMSTD>NONE</DOVNUMSTD><DOVENM>P</DOVENM><DOVNUMSEQ>NONE</DOVNUMSEQ><DOV=
SVT>NO</DOVSVT><DOVSUJ>NONE</DOVSUJ><DOVPPG>NONE</DOVPPG></DOVCXT><MSGMET=
><MATUSR>7988</MATUSR><MATGES>4318</MATGES><NUMCONBAS>32460</NUMCONBAS></=
MSGMET></DOVREQ>
		</Parameter>
	</ParameterSet>
</GinkoRequest>

I would like that the value of my Java Object of type "Parameter" whose n=
ame is MESSAGE is the XML string <DOVREQ ....></DOVREQ> and NOT the empty=
 string as for now. Again, I can't insert a CDATA section=20

Is that a well-known issue ? Is there any clue for doing that ?

Please help. Thank you in advance,

S=E9b


> - S=E9bastien Noel -=20
> DEXIA - Banque Internationale =E0 Luxembourg
> Equipe Architecture
> *(+352) 4590 2218 - Fax 2952/ * PLM +052A
	* [email protected]=20
=20



---------------------

An electronic message is not binding on its sender. =20
Any message referring to a binding engagement must be confirmed in writin=
g and duly signed.
---------------------