Welcome to the Linux Foundation Forum!

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

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

Comments

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

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training