charles_cp
asked on
Modify xml by php dom
Dear
I would like to use php, dom to modify a xml file. For example, i have a book.xml as below. If I want to change publisher "Thomson" to "Wiley". How can I do that? Does anyone can give me a php code to do this? Thank you very much!
<books>
<book>
<author>Don Gosselin</author>
<title>PHP Programming with MySQL</title>
<publisher>Thomson</publis her>
</book>
<book>
<author>Jack Herrington</author>
<title>Podcasting Hacks</title>
<publisher>O'Reilly</publi sher>
</book>
</books>
I would like to use php, dom to modify a xml file. For example, i have a book.xml as below. If I want to change publisher "Thomson" to "Wiley". How can I do that? Does anyone can give me a php code to do this? Thank you very much!
<books>
<book>
<author>Don Gosselin</author>
<title>PHP Programming with MySQL</title>
<publisher>Thomson</publis
</book>
<book>
<author>Jack Herrington</author>
<title>Podcasting Hacks</title>
<publisher>O'Reilly</publi
</book>
</books>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
XML?