Donate SIGN UP

How To Create An Xml File In Php?

Avatar Image
priyajazz | 08:49 Sat 11th Jun 2016 | Technology
1 Answers
$xml1 = "\n";
$xml1 .= "\t\n";
$xml1 .= "\t\t\n";


I would need to add a schema link to "invoices" so that the XML output looks like the following:




Whatever I try I always receive an error and the XML file is not created. How could I solve this or where could I find information on how to insert the required schema link correctly.
What I have tried so far is to add the link with different solutions including ' or

$xml1 .= "\t\n";
$xml1 .= "\t\n";

Gravatar

Answers

Only 1 answerrss feed

Best Answer

No best answer has yet been selected by priyajazz. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
Hi priyajazz,

Without more details or what error message it's hard to understand what's going wrong.

Take a look at the following link, it may be helpful. W3schools.com also have some good stuff that might help.

http://php.net/manual/en/domdocument.savexml.php

Good luck with it. :)

Only 1 answerrss feed

Do you know the answer?

How To Create An Xml File In Php?

Answer Question >>

Related Questions

Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.