The mod_xml_curl summary
Most of the mod_xml_curl
examples we've shown you will print the same XML every time so they're essentially static with a few dynamic bits here and there.
You may have also noticed, and silently mocked, the fact that we're just using print
statements to output the XML file. In PHP, as in the case of other languages, there are XML generating libraries/classes that can help you generate valid and compliant XML with different character encodings. For example, PHP has the SimpleXML extension (http://php.net/manual/en/book.simplexml.php) that can also be used. As a general rule, you should use such a library if you plan on doing any serious implementation.