RE: [PHP] xml and php

This is a discussion on RE: [PHP] xml and php within the PHP General forums, part of the PHP Programming Forums category; [snip] <?xml version="1.0"?> <library> <book> <id> 1 </...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-31-2003
Jay Blanchard
 
Posts: n/a
Default RE: [PHP] xml and php

[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.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:07 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0