That's for the answer. The parser is seemingly working but I am throwing
an exception that I'm not sure where its coming from. I am getting a thrown:
class java.net.MalformedURLExceptionno protocol: <?xml version="1.0"
encoding="utf-8"?><methodCall><methodName>accounts.name</methodName><params/></methodCall>
That's the output from this block of code:
try {
BufferedReader in =
AbstractTransportParser.newBufferedReader(incomm);
MethodCall method = parser.parse(
in.readLine() );
System.out.println( method.getMethodName() );
}
catch(Exception e) {
System.out.println( e.getClass() +
e.getMessage() );
this.close();
}
Thanks for the help thus far Jochen. I'm glad that I decided to use this
library.
-John Bellone
[EMAIL PROTECTED]
609.489.3112
Jochen Wiedmann wrote:
On Nov 11, 2007 2:36 AM, John Bellone <[EMAIL PROTECTED]> wrote:
"[Fatal Error] :2:1: Content is not allowed in prolog."
This error message is thrown out by the XML parser. It indicates, that
the document is not well formed, because the parser expects to see
only the XML prolog, XML comments, or PI's before the root element.
Reasons include things like HTTP headers as input for the parser,
wrong charset when converting a character stream into a byte stream or
similar stuff.
Jochen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]