beefeater267
Programmer
- Apr 6, 2005
- 79
Hi,
I'm kind of new to Java and I'm creating a servlet that does the following: it just needs to parse an XML string.
So, I have the following code:
SAXParserFactory parserFactory = SAXParserFactory.newInstance();
parserFactory.setValidating(false);
parserFactory.setNamespaceAware(false);
SAXParser parser = parserFactory.newSAXParser();
//derived from DefaultHandler
SSMHandler handler = new SSMHandler();
XMLStatus = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Command xmlns=\"
parser.parse(XMLStatus, handler);
So, the code throws an exception on the parse method:
I get :
java.net.MalformedURLException: no protocol:
Can anyone help me out with what is going on here?
Greatly appreciated.
I'm kind of new to Java and I'm creating a servlet that does the following: it just needs to parse an XML string.
So, I have the following code:
SAXParserFactory parserFactory = SAXParserFactory.newInstance();
parserFactory.setValidating(false);
parserFactory.setNamespaceAware(false);
SAXParser parser = parserFactory.newSAXParser();
//derived from DefaultHandler
SSMHandler handler = new SSMHandler();
XMLStatus = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Command xmlns=\"
parser.parse(XMLStatus, handler);
So, the code throws an exception on the parse method:
I get :
java.net.MalformedURLException: no protocol:
Can anyone help me out with what is going on here?
Greatly appreciated.