[snip]
<?xml version="1.0"?>
<library>
<book>
<id>
1
</id>
<title lg="FR">
Title 1
</title>
<Desc lg="FR">
Description 1
</Desc>
<KeyWords lg="FR">
<key>word 1</key>
<key>word 2</key>
<key>word 3</key>
</KeyWords>
<title lg="EN">
Title 1
</title>
<Desc lg="EN">
Description 1
</Desc>
<KeyWords lg="EN">
<key>word 1</key>
<key>word 2</key>
</KeyWords>
<author>
Author 1
</author>
<ISBN>
ISBN 1
</ISBN>
</book>
</library>
I want to be able to add, modify and delete book of library.
Can you help me ?
[/snip]
Yes I can help. fopen() library.xml (see http://www.php.net/fopen ) for
writing. Write all of the XML tags from <book> to </book> and
appropriate info to library.xml and then close it. Use the XML functions
(http://www.php.net/xml ) to work with the xml file for parsing.
I think you may be overcomplicating the issue. The XML file is just a
text file. The XML parser allows you to work with the file in a
meaningful way.
HTH!
P.S. When responding please respond to the list as a whole.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php