I dont know how to write to an XML FILE in php.Can anyone help me to let me know by giving a simple example in xml.Any help would be appreciated..An example in xml is shown below

<?xml version="1.0" encoding="UTF-8"?>
<table>
<order>
<id>1</id>
<name>john</name>
<age>23</age>

</order>

<order>
<id>2</id>
<name>patrick</name>
<age>22</age>

</order>
<order>
<id>2</id>
<name>lawrence</name>
<age>21</age>

</order>
</table>

Show your code.

Show your code.

thanks ...i myself did the code and got the expected result

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.