[xml] how to read from network by xmlReadFile



Thu, 01 Jan 1970 09:00:00 +0900
hellow.

I read the short description of of xmlReadFile at parser Manual of 
'Reference Manual for libxml2',that say 'parse an XML file from the 
filesystem or the network.'
And so, I tried to read the xml file from my local network, by call 
the function like as follows.

doc = xmlReadFile("http://localhost/resource/test.xml";)
but, error message (fail to load HTTP resource) returns.

and next i tried like as follows.

doc = xmlReadFile("file:///mydirectory/resouces/test.xml") 
in this way, the function runs sucessfully.

but. I want to read file from outer network in the future.
How should I do using this libxml2 library ?

thank you.

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
MAIL : nakai kazuhiro sharp co jp
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/



_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
MAIL : nakai kazuhiro sharp co jp
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]