xml-generation

Creating a XmlDocument with hardcoded schema C#

Hello! I have an application that works with XML file. It works great if the xml file is present, however there is also a requirement, that the project generates a blank XML file and then writes to it in case the output file is not present. The xml file has a quite complicated schema, something like the following: <?xml version="1.0" ...

Cakephp generating xml error - blank space

Hi, I am trying to generate a dynamic xml document in CakePHP to output to the browser. Here is my controller code: Configure::write ('debug', 0); $this->layout = null; header('Content-type: text/xml'); echo "<?xml version=\"1.0\"?>"; View is something like this: <abc> something </abc> The output is probably as expected: <?...