| Generating XML Documents Using PHP |
| Article Index |
|---|
| Generating XML Documents Using PHP |
| Page 2 |
The creation or saving of XML data stored in files on disk is the final topic for this chapter. Using the skills that you have already acquired in this chapter or by consulting other chapters in this book, you know how to process World Wide Web forms or query MySQL databases using PHP.
In most cases, the act of creating XML data from variable data that you have already acquired using PHP is as simple as taking one of two steps:
-
If your data is stored in a series of strings or other common objects, write out XML elements and data as needed to a disk file using standard PHP output functions, the same as you would when storing text data to any other type of file.
-
If your data is stored in a specialized object designed for XML manipulationsuch as a DomDocument (DOM extension) or SimpleXMLElement (SimpleXML extension) objectcall the extension's unique function or property for writing the object tree out to an XML file on disk.
This entry was posted on . You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a comment.
Tags: Simple PHP, Pear, Easy PHP, PHP Tutorial, PHP MySQL, XSLT, Sap Tutorial, CSS Tutorial, XSL FO Java, SQL Tutorial.
| Users' Comments (0) |
|
No comment posted








