|
Posted by kiretose on 11/17/07 08:07
On Sat, 17 Nov 2007 08:02:57 +0000, kiretose wrote:
> On Thu, 15 Nov 2007 11:27:22 +0100, Maurice van 't Loo wrote:
>
>> Hi all,
>>
>> Is there a (simpel??) way to open an XML file WITHOUT parsing the XSL
>> file in php?
>>
>> The file i want to open is:
>>
>> <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl"
>> href="/layout/item-info.xsl"?>
>>
>> <page globalSearch="1" lang="en_us" requestUrl="/item-info.xml">
>> <itemInfo>
>> etc.
>>
>> But when i open the file, it opens as an html file, but i want the raw
>> xml...
>>
>> I tried fopen() but than i get the xhtml in stead of xml...
>>
>> Thanks in advance,
>> Maurice van 't Loo
>> The Netherlands
>
> Using curl to pull down the file will solve the issue of it parsing out
> the style sheet. From the curl output, drop it into simpleXML or
> whatever parsing engine youre using and youre all set.
>
> be warned on loops, in my experiences lately simplexml tends to leak a
> fair amount of memory.
i forgot to add we're 90% done setting up a cooperative database to mine
the site youre scripting for there, at least arena + char pages...
drop me a line to the email listed here and Ill get you information later
this week, the goal is a central database to drop spider results off at,
and in the end get access to them all.
[Back to original message]
|