Need Help: Creating Simple HTML to Extract Information from XML File – Any Tips or Examples?

18 Replies, 1499 Views

Hey there! If you’re stuck on creating simple html to extract information from xml file, you might wanna check out jQuery. It’s super easy to parse XML with it.

Here’s a quick snippet:

```javascript
$.get("yourfile.xml", function(data) {
$(data).find("yourTag").each(function() {
$("#output").append($(this).text() + "<br>");
});
});
```

This will load your XML and display the content in a div with id="output". jQuery makes it a breeze!

Messages In This Thread



Users browsing this thread: 1 Guest(s)