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

18 Replies, 1331 Views

Hey! For creating simple html to extract information from xml file, you could use PHP if you’re comfortable with server-side scripting.

Here’s a basic example:

```php
$xml = simplexml_load_file("yourfile.xml");
foreach($xml->children() as $child) {
echo "<p>" . $child->yourTag . "</p>";
}
```

This will loop through your XML and display the data in HTML paragraphs. PHP’s SimpleXML is pretty beginner-friendly.

Messages In This Thread



Users browsing this thread: 1 Guest(s)