Parse XML Successfully with AJAX When You Modify the DOM


show more Parsing XML using AJAX provides you with in-depth training on Developer. Taught by Ray Villalobos as part of the JavaScript and AJAX show less
please wait ...

Parsing XML using AJAX

AJAX was originally designed to read data stored in a format called XML, or Extensible Markup Language. It's very much like HTML, but you get to make your own tags. So let's take a look at an example of what it takes like to read data in this format. We have a new file in our folder called data.xml. It's a file with some data in the XML format. If you know a little HTML this should be super easy to read. You can open an XML file with some browsers to see the structure a little bit better. So we have a speakers object, and inside the speaker objects we have a series of speaker objects.

Each one of the speaker objects has different parts to it, so for example we have the <name> tag, the <shortname> tag--which is the same as the <name> tag but without spaces or special characters--as well as the <reknown> tag and a <bio> that has some information about the speaker. Reading this into JavaScript is super simple. As a matter of fact, the XHR object comes...

Parsing XML using AJAX
Video duration: 4m 24s 1h 12m Intermediate

Viewers:

Parsing XML using AJAX provides you with in-depth training on Developer. Taught by Ray Villalobos as part of the JavaScript and AJAX

Subjects:
Developer Web
Software:
Ajax JavaScript
Author:
please wait ...