Linux.com

Home Linux Community Forums Software Productivity This one is about XML. I know that is outside this forum

This one is about XML. I know that is outside this forum

Link to this post 29 Jan 12

I really cannot find the info anywhere else.

I'm trying to make a xml writer. just for simple stuff.

$output=xmlwriter_open_uri("../lib/main.xml");
$blog=$sxe->continue->addChild('blog',$newin);
$blog->addAttribute('date',$date);

when I use this, it puts the info in the xml. if I print out the xml while in this script, my new stuff is right there. but after i finish this page, when I go read from this file again, it will not load, I get all kinds of errors.
I'm thinking that I'm missing the command to write to and close the file. I cannot find the finishing part. Does anyone know how to finish this up?
Thank you for your assistance

Link to this post 15 Feb 12

Show the text this tool creates (attach file here). Also, what API is this? Where did you get it?

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board