I've been also folowing the thread 'Problem with adding DOM node...', but
none of the suggested solutions work for me. I've tried JDom and it makes
things a bit better, but still do not work. You know why? I'm absolutely
sure it is because of thos weird characters I mentioned earlier. I've
attached a small image (hope you don't mind) where you can see a screen
fragment of the variables window in WADS, reflecting the 'data' variable. It
is filled with the value got from the DB right after a typical
'res.getContent()'...I guess it has something to do with encoding?!?!?

When using DOM, parsing stops exactly when one of those weird characters is
found, but it doesn't trow an exception.
With JDOM it goes 'til the end of the String, but creates a new node for
everyone of those characters.

Oh, God, I'm desperate, I decided to use a native XML DB for this project
cause I thought things would be easier this way, and things are getting
worse indeed....

Thanks for listening and helping :-)


----- Original Message -----
From: "Josema Alonso" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, November 12, 2002 9:03 PM
Subject: Re: how to get rid of the xml declaration on results?


> > u can send an example of ur cleaned XML document?
> Of course, below is the produced xml string right before making the call
to
> the parse method, I don't see anything relevant.
> But...I'm using Websphere Developer to debug the application and I can see
> in the variables inspector that there are some weird characters in between
> the xml tags, i.e., something like this:
> ...</EquipmentType>##<EquipmentType>....
>
> The # characters are not actually #, but something different, like a tiny
> square...I'll try to analyze the String with Java and see what I can get.
>
> Thanks.
>
> ----------
> <EquipmentTypes>
>  <EquipmentType id="player" >
>   <Description lang="en">Player</Description>
>   <Description lang="es">Reproductor</Description>
>  </EquipmentType>
>  <EquipmentType id="preamp" >
>   <Description lang="en">Preamplifier</Description>
>   <Description lang="es">Preamplificador</Description>
>  </EquipmentType>
>  <EquipmentType id="recorder" >
>   <Description lang="en">Recorder</Description>
>   <Description lang="es">Grabadora</Description>
>  </EquipmentType>
> </EquipmentTypes>
>
>

<<attachment: weird_text_value.png>>

Reply via email to