Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

writing to xml files

Status
Not open for further replies.

Zillank

Technical User
Oct 23, 2004
3
US
Anyone have some resources to how I go about saving info into xml style...

am I able to write the same way it reads
parent.child_node etc
 
Once you've gotten your information into your DOMDocument (using the child_node methods, etc. like you said), you would call the .save method, telling it the filename.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
I was looking more toward a link/document/tutorial on using php or some web-driven language that does this. I think xQuerry is going to do what im asking but its not supported as of yet, could be wrong.

more specificly I have a site thats entirly xml driven in content, and was building the application that lets my client update the xml files. However I do not know how is best to write it...
using a string to hold everything
"<content><parent><child1>child info</child1>" etc
or if there was a more specific way to change the child varaibles and reprint it? Dont know if i made myself clear.

Thanks
Kent F.
 
I'm not a PHP person. But why not try one of the links at the bottom-left, in the "Partners" panel?

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top