Re[2]: [PHP] Read a file

From: Date: Tue, 08 Jul 2003 16:02:49 +0000
Subject: Re[2]: [PHP] Read a file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-154393@lists.php.net to get a copy of this message
On Tuesday, July 8, 2003, 6:52:56 PM, carlos wrote: cc> But them how i can look for the tag i need if i have the file in an cc> array, i need to read an xml file and extract the info between tags cc> <password xxxxx> and </password>..... Well, I wish you would have said that earlier. Parsing XML files is different than parsing text (or other files). PHP has XML parsing built-in thanks to expat. More information on XML support in PHP is at http://www.php.net/xml I have written a tutorial at my website <plug>http://www.meidomus.com/archives/000075.php</plug> that shows an example of parsing XML files in PHP. It does not use the XMLDOM extension. It might be of help to you. -- Regards, Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com

« previous php.general (#154393) next »