This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with using InputSource in SAXParser

 
Kobe Phenom
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic