Posted by Jerry Stuckle on 11/15/07 13:21
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
>
>
>
How are you trying to open it? Code helps.
fopen() on a local file should allow you to read/write the file as it
is, no matter what the type.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|