So basically, $xml is out of scope for this function and you are appending to a nonexisting variable? Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table 2013/3/15 Jay Blanchard <jay.blanchard@xxxxxxxxxxxxxxxxxxx> > [snip] > > Two questions: >> Where is $xml defined and where is $pos defined? >> >> [/snip] > > $xml is defined in other functions, just not in this function. $pos is > irrelevant to the question - it is just the string position within the file. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >