By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,049 Members | 1,308 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,049 IT Pros & Developers. It's quick & easy.

modify XML file with DOM

P: 2
I'm having trouble with modifying xml file...

<?
$dom = new DomDocument();
$dom->load("fileName.xml");

?>

fileName.xml is
<classes> </classes>

then if I want to add a new class under clases
How do I do?

to get
<classes>
<class>
</class>
</classes>

thanks..
Feb 4 '07 #1
Share this Question
Share on Google+
1 Reply


Motoma
Expert 2.5K+
P: 3,235
Welcome to The Scripts.
Take a look at PHP.net's documentation on XML DOM.
Feb 4 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.