# Parsing XML with PHP

**URL:** <https://forum.kirupa.com/t/parsing-xml-with-php/275566>\
**Category:** programming\
**Created:** [November 16, 2008, 12:22am UTC](https://forum.kirupa.com/t/parsing-xml-with-php/275566 "2008-11-16T00:22:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MC\_Antoine](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@MC\_Antoine](https://forum.kirupa.com/u/MC_Antoine)\
**Post date:** [November 16, 2008, 12:22am UTC](https://forum.kirupa.com/t/parsing-xml-with-php/275566/1 "2008-11-16T00:22:14Z")

</div>

I have used the following Kirupa article to help me parse an XML file and display it using PHP.

[http://www.kirupa.com/web/xml\_php\_parse\_…](http://www.kirupa.com/forum/../web/xml_php_parse_intermediate.htm)

I have used this method a number of times, and it works great. However, I have now come to a situation where I need to add a third child node, and display it, but I just can’t seem to get the right syntax.

I would like to use this same general template, as I have become used to and like it. If someone could just tell me what changes I would need to make, and what I need to add for a third child node, it would be much appreciated.

Thanks!
