# Parsing XML Query

**URL:** <https://forum.kirupa.com/t/parsing-xml-query/326816>\
**Category:** programming\
**Created:** [January 14, 2012, 11:45am UTC](https://forum.kirupa.com/t/parsing-xml-query/326816 "2012-01-14T11:45:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danhkent](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@danhkent](https://forum.kirupa.com/u/danhkent)\
**Post date:** [January 14, 2012, 11:45am UTC](https://forum.kirupa.com/t/parsing-xml-query/326816/1 "2012-01-14T11:45:16Z")

</div>

Hi guys,

I’ve been following the tutorials, and I have to say they are fantastic! Only problem I’ve got is, an xml file I am trying to parse, using php, has a mixture of data in between tags, and data within tags.

For example:

\<username\>danhkent\</username\>

and then

\<details\>  
\<username=“danhkent”/\>  
\</details\>

Frustratingly, it just naturally produces a blank line when trying to parse it.

Any ideas?

Cheers,

Dan
