# Simple problem-while creating xml using php

**URL:** <https://forum.kirupa.com/t/simple-problem-while-creating-xml-using-php/241646>\
**Category:** Uncategorized\
**Created:** [October 16, 2007, 2:56pm UTC](https://forum.kirupa.com/t/simple-problem-while-creating-xml-using-php/241646 "2007-10-16T14:56:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![forumg](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/forumg/32/3953_2.png) [@forumg](https://forum.kirupa.com/u/forumg)\
**Post date:** [October 16, 2007, 2:56pm UTC](https://forum.kirupa.com/t/simple-problem-while-creating-xml-using-php/241646/1 "2007-10-16T14:56:11Z")

</div>

Hi,  
i am trying to [COLOR=#003366][**Output mySQL data** as XML with PHP](http://www.kirupa.com/web/mysql_xml_php.htm)[/COLOR][COLOR=black] , as you can see in the tutorial there is a line, where it begins to write xml. My problem is here. [/COLOR]

[COLOR=black]Whenever i try to write this line [/COLOR]  
[COLOR=black][FONT=Courier New][COLOR=#0000bb]$xml\_output [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#dd0000]"\<?xml version=“1.0”?\>  
"[/COLOR][COLOR=#007700]; [/COLOR][/FONT][/COLOR]  
it gives error becouse of the ?\> i try to use \ to be able to write but i couldnt solve the problem.

I do not know too much about php, so any help will be great. 🥚

by the way i make some search but couldnt find the solution for this, if there is an answer for this already, sorry for asking again 😉
