You are here: Re: php newbie question with xml files « PHP « IT news, forums, messages
Re: php newbie question with xml files

Posted by Jared Sherman on 05/05/05 05:23

Thanks these pointers have helped alot.



"Jared Sherman" <jaredsherman@cox.net> wrote in message
news:20050503055906.1254.qmail@lists.php.net...
>I have an xml document storing some data I need. What I want to do is this:
> 1. Scan to the end of the file.
> 2. Find the closing tag.
> 3. Insert a new entry in before the closing tag.
>
> I've tried:
> 1. Creating new files and renaming them to be the original.
> 2. Writing the file to a dummy file and insert my lines part way through
> then finish the last tag.
>
> My problem is I'm looking for a </endtag> and it comes up as endtag. Is
> there anyway to force PHP to read the .xml file as a text file so it wont
> strip off the xml tag information?
>
> I've used fopen with fgets and fwrite, and file with fwrite
>
> Jared Sherman
> Totally lost newbie

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация