You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Shirish Kulkarni <sh...@yahoo.com> on 2003/03/20 21:36:40 UTC
Internet / network access for Xerces parser
Hi,
I have following queries -
1. Does Xerces parser require the machine to be on the
network / Internet connection. I verified, that in
processing of a schema/namespace enabled XML file, the
constructor for XMLURL gets called only once ( and the
generated URL is a dummy URL and does not get used for
actual Stream creation ) -> Since the parser is
equipped with an EntityResolver, which points to the
LocalFileInputSorce, the Schema is also used from
local hard disk.
2. I tried to create a XMLURL say
http://www.yahoo.com/index.html, but
url_input_source.makeStream() is always observed to be
throwing a Malformed URL error -> which checking
found, that XMLPlatformUtils::fgNetAccessor does not
get initialized for sun4_solaris. Is this a bug for
Xerces V 1.5.1 on sun4_solaris ? [ fgNetAccessor
should get initialized during call to
XMLPlatformUtils::Initialize() ]
char * url_string = (char
*)"http://www.yahoo.com/index.html"
XMLURL xml_url = XMLURL ( url_string );
URLInputSource url_input_source = URLInputSource (
xml_url );
try
{
BinInputStream * bin_input_steam =
url_input_source.makeStream();
}
catch (...)
{
cerr << "caught an exception" ;
}
3. Is there any standard utility / API in Xerces,
which I can use to find
3.1. If the machine is connected to network
3.2. If the machien is able to access Internet
Any guidance will be appreciated.
Thanks,
Shirish
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org