This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Problem with using InputSource in SAXParser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Problem with using InputSource in SAXParser" Watch "Problem with using InputSource in SAXParser" New topic
Author

Problem with using InputSource in SAXParser

Kobe Phenom
Greenhorn

Joined: Sep 03, 2003
Posts: 13
need urgent help...
the xml (xhtml) that i need to parse using (xerces) SAXParser comes from a MIDlet, the data is passed (in xhtml format) to a servlet which then calls the parser to parse the data. Unfortunately, J2ME doesn't have file handling classes/methods thus the need of my parser to use InputSource. the MIDlet (client) is sending the data in xhtml format, and then the parser should parse the data directly from the InputStream. when the MIDlet tries to send data, the parser is getting an unknown source...
some code snippets:
(inside my servlet)
(inside my SAX parser)
i couldn't pinpoint where the error might be... please help. thanks.
[ October 30, 2003: Message edited by: Lasse Koskela ]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Unknown source? Could you post the full stack trace?
Also, you might want to print the InputStream into System.out to see what you're actually trying to parse.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with using InputSource in SAXParser
 
Similar Threads
problems with JAXP
XML Parsing and Validation with SAX parser shoots CPU to 100% utilization
problems with JAXP
Parsing XML elements
problems with JAXP