Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   xml wrongly views as text extracted from the xml tags (http://www.velocityreviews.com/forums/t392471-xml-wrongly-views-as-text-extracted-from-the-xml-tags.html)

Shyran 11-14-2006 06:06 AM

xml wrongly views as text extracted from the xml tags
 
we have a java framework, where we feed a request xml. this request xml
is forwarded through
the framework, tomcat and axis, for the backend processing, and the
processing results are
again received by the internet explorer, after they are transformed
with an xslt by the framework.

now the problem that we are facing is like - the explorer extracts the
text inside all xml tags
of the response xml and shows it as simple text. but, if you view the
source of the 'text', it will show it all as well-formed xml.

moreover, if you save the source as an xml file, and again open it
through internet explorer,
it will show the xml in proper way.

i have tried using firefox, processing with xml spy, but with same
results...

has somebody experienced similar problem before???

i wonder what can be wrong in this case, and would be thankful for any
pointers as to what
can be the cause and solution to this.

Thanks in advance,
Shreyas


Shyran 11-15-2006 06:31 AM

Re: xml wrongly views as text extracted from the xml tags
 
Hi all,

Finally i got what was the problem. it was because the response xml
contained a <Title> </Title> tag in it. and dont know why/how, but IE
was treating it as an HTML tag. i noticed that the browser window title
was indeed "Mr" which is the text enclosed by the Title element.

one more weird thing i noticed was that if i moved the
<xsl:apply-templates> line for the tag downwords after one more
template application, it was showing the xml properly alongwith the
<Title> element, and not treating it as an HTML tag.

now the problem at my end is resolved. but it has kept me wondering as
to what might be the possible reason behind this weird behaviour.

regards,
Shreyas


Shyran wrote:
> we have a java framework, where we feed a request xml. this request xml
> is forwarded through
> the framework, tomcat and axis, for the backend processing, and the
> processing results are
> again received by the internet explorer, after they are transformed
> with an xslt by the framework.
>
> now the problem that we are facing is like - the explorer extracts the
> text inside all xml tags
> of the response xml and shows it as simple text. but, if you view the
> source of the 'text', it will show it all as well-formed xml.
>
> moreover, if you save the source as an xml file, and again open it
> through internet explorer,
> it will show the xml in proper way.
>
> i have tried using firefox, processing with xml spy, but with same
> results...
>
> has somebody experienced similar problem before???
>
> i wonder what can be wrong in this case, and would be thankful for any
> pointers as to what
> can be the cause and solution to this.
>
> Thanks in advance,
> Shreyas




All times are GMT. The time now is 08:31 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57