How to make Dynamic XML with PHP

deadbyte

New Member
I want to make an xml file from php like this.\[code\]<?xml version="1.0" encoding="UTF-8" standalone="yes"?><feed> Everything from php form will go here like this: <item sdImg="" hdImg=""> <title></title> <contentId></contentId> <contentType></contentType> <contentQuality></contentQuality> <streamFormat></streamFormat> <media> <streamQuality></streamQuality> <streamBitrate></streamBitrate> <streamUrl></streamUrl> </media> <synopsis></synopsis> <genres></genres> <runtime></runtime> </item> now this elements will be submitted again and again with different values.</feed>\[/code\]Now the problem is that I want the output of form to be written between this Grandparent \[code\]feed\[/code\] tag. I thought \[code\]FOPEN\[/code\] and \[code\]FWRITE\[/code\] will be useful but I don't think that they can be used here. So what could be the most useful function of php which could be used here. And also the form will going to write in the same xml file again and again. I mean that every time the user will submit the form.Thanks in advance for your answer.
 
Back
Top