Search This Blog

Tuesday, October 16, 2007

jQuery and XML

Whether you're an admirer of AJAX, or one who can't stand all the hype,
if you're a web developer you must admit that it's proven very useful
in driving explosive competition among JavaScript utility libraries.
And the embarrassment of riches keeps on growing. jQuery "is a fast,
concise, JavaScript Library that simplifies how you traverse HTML
documents, handle events, perform animations, and add Ajax interactions
to your web pages." jQuery emerged a couple of years ago to great
acclaim for its performance, elegant design, and handy features, and
now it's one of the most popular JavaScript frameworks. jQuery offers
a lot of facilities, but it's best known for offering a cross-browser
model for accessing and manipulating web page elements that means you
don't have to deal with the endless pain of DOM. jQuery can be used
for XML processing on the Web as well as HTML processing, and in this
article I show some examples of this use. The most cross-platform way
to process XML these days is by using XMLHttpRequest. We can hope
overall browser support of XML improves, but I start by showing how
you can use jQuery to load and manipulate XML from an HTML web page...
jQuery has no selectors that understand XML namespaces. Even prior to
version 1.2 when there was an option for XPath-like selectors, there
was no namespaces support. This doesn't mean you can't use jQuery to
process XML with namespaces. It just means you may have to sometimes
take the escape hatch to DOM... JavaScript libraries are a matter of
taste, and we can just thank our stars there is one for just about any
taste. I came to enjoy jQuery because it made processing mainstream
web content so much easier, and when I tried to make it do cool things
with XML, I was pleased with how many things did just work, though
some of the blind alleys were a bit unexpected. More Information See also the jQuery web site: Click Here

1 comment:

Unknown said...

i was not expecting this from jQuery. Any solution?