> > Yeah, it should be. What kind on content can be around $file and also > within the <item> tag? >
here's a snip of the xml file... it's finding the $file correctly, but deletes all records from the beginning of the file onwards. it leaves the xml file with valid xml ... <news> at the start... so for the most part the preg is working... it's just being too greedy at the start for whatever reason... <news> <item> <title>fhh</title> <date>1060205191</date> <text>hhh</text> <file>xml/news/1060205191.xml</file> </item> <item> <title>fgjghjh</title> <date>1060205186</date> <text>fgjh</text> <file>xml/news/1060205186.xml</file> </item> <item> <title>fgjhh</title> <date>1060205182</date> <text>fghh</text> <file>xml/news/1060205182.xml</file> </item> </news> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php