Hi,
I was just exploring more on Javascript XML Parser, Xpath and XSL.
When I compare two approaches of using Javascript parsers with that of the
Java parsers, I see advantages using java parsers.
Disadvantages When Parsing using Javascript:
1. Cross Browser compatibility: Well know Issue. Some browsers does not support all the parsers.
2. Security: XML is downloaded on to the client machine. If the document contain any sentitive data then it will be on client machine unless temporary files are deleted.
Advantages of using Browser parsers using Javascript:
1. Asynchronous requests: XMl documents returned by asynchronous requests using AJAX technology can be parsed and shown to the user on the fly.
Advantages Java parsers:
1. XML documents are not downloaded on the client machine but parsed at the server side and html is returned to the client through response object.
2. Asynchronous requests still can be made using AJAX technology, but instead of sending XML documents, send html back to the browser. (I haven't tried this but I think it is possible). (We can have UI renders classes that will parse these XML documents and apply any stylesheets necessary. I am not sure how fast this would be).
Did anyone compare these two approaches? and which one do you think is better?
Any thoughts?