# Cannot display xml when file.jpg is in it? (parsing xml with php)

**URL:** <https://forum.kirupa.com/t/cannot-display-xml-when-file-jpg-is-in-it-parsing-xml-with-php/324316>\
**Category:** Uncategorized\
**Created:** [August 14, 2011, 4:34pm UTC](https://forum.kirupa.com/t/cannot-display-xml-when-file-jpg-is-in-it-parsing-xml-with-php/324316 "2011-08-14T16:34:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smittenbite](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@smittenbite](https://forum.kirupa.com/u/smittenbite)\
**Post date:** [August 14, 2011, 4:34pm UTC](https://forum.kirupa.com/t/cannot-display-xml-when-file-jpg-is-in-it-parsing-xml-with-php/324316/1 "2011-08-14T16:34:21Z")

</div>

I was looking at this script [http://www.kirupa.com/web/xml\_php\_parse\_intermediate.htm](http://www.kirupa.com/web/xml_php_parse_intermediate.htm)

I was able to use it properly to parse an xml file but the only thing it doesnt display is when the info is just a filename . for example in my xml file i have \<filename\>thing.jpg\</filename\> and this is the only variable that won’t display from the array. It displays everything else just fine. any clues on why this might be? I am not trying to display the picture itself, i just want to display “thing.jpg” just like any other regular text.
