Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: javascript parentNode

From: "VK" <schools_ring@-----.--->
To: NULL
Date: 4/2/2006 1:00:00 PM


anupamjain@g... wrote:
> I was converting the HTML to XHTML using JTidy and then parsing it
> using Xerces at the server side.(So it 'was' XHTML on the server side,
> so no TBODYs)
>
> But I guess now I will parse it also on the client side using mozilla's
> doc.evaluate (It's ok  for me if it runs only on Mozilla)
>
> I hope it works. Will let you know.

It will not work - but you may try out of interest. First of all IE
doesn't support XHTML at all - it will be parsed as malformed HTML
Transitional with the most funny results (and the most fancy trees) to
expect. Given the phantom nodes problem on the standard-compliant
company plus some little but nasty DOM parsing discrepancies between
different browsers... I would say your idea of server-side /
client-side matching xpath's is like running two random numbers
generators on two machines and hope that the sequences will match.

I would suggest to use xpath in the environment it was intended to:- in
XSLT templates to process XML data part. With .xml (data) and .xsl
(transformations) you'll get what you want in the cross-browser way.



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent