Editing XML files
Submitted by dustin on Tue, 2006-03-07 18:15.Magic Parser
Can this be used to edit xml files?
Support forum loginActive forum topics©2006-2012 IAAI Software |
Editing XML filesSubmitted by dustin on Tue, 2006-03-07 18:15.Magic Parser
Can this be used to edit xml files? |
Hi,
I'm afraid there are no editing or writing features in Magic Parser. If you want to create XML using PHP then it is normally just a case of issuing the appropriate headers and generating the XML content using the standard output features; for example:
<?phpheader("Content-Type: text/xml");
print "<example>";
print "<foo>bar</foo>";
print "</example>";
?>
For actual editing of XML files you would need to look at a DOM based interface which provide functions for creating and editing nodes. Check here for more information on PHP's DOM based XML interface:
http://www.php.net/manual/en/ref.dom.php