Go Back   WebDev Answers > Web Development Discussion > RSS & XML

Reply
 
LinkBack Thread Tools Search this Thread Display Modes

  #1 (permalink)  
Old 01-25-2008, 03:10 AM
Chinadust Chinadust is offline
Junior Member
 
Join Date: Jan 2008
Posts: 1
Default SAX parse online xml problem?

I have this java applet parse the xml file
the xml is online:
like https://localhost:800/.../filename.xml
The part of the code is
try {
SAXParserFactory sf = SAXParserFactory.newInstance();
SAXParser sp = sf.newSAXParser();
XMLReader xmlReader = sp.getXMLReader();
xmlReader.setContentHandler(this);
InputSource source = new InputSource(fileName);
xmlReader.parse(source);
} catch (Exception e) {
e.printStackTrace();
}

it works well when the xml file is on my computer, but i cannot have
to it work for the online xml(on the server).

The error message is

java.io.FileNotFoundException: https:/localhost:800/.../filename.xml
(No such file or directory)

Does anyone know how to solve this? thanks!


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads for: SAX parse online xml problem?
Thread Thread Starter Forum Replies Last Post
Need perl script to parse xml type log file. the script will parse the... Ricky RSS & XML 0 01-16-2008 07:18 AM
How do I parse an RSS XML feed using PHP? jumpingrightin PHP 0 11-30-2007 05:57 PM
Parse error: parse error, unexpected T_STRING in C:\Program Files\EasyPHP... quest PHP 0 10-17-2007 03:57 PM
Does anyone know how to parse the shopping.com XML API ?? Alain RSS & XML 1 06-17-2007 08:26 PM
Parse out text with PHP from a field? Jeff Lewis PHP 1 05-31-2007 09:57 PM



All times are GMT. The time now is 08:47 AM.

Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.