Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Newbie Question

 
Russ Ray
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to XML and the means for parsing an XML strings What I need is a little direction.
First of all, let be say thank you to all for reading.
Here us what I am doing.
I am have a simple client to publish an xml encoded string using the embedded JMS for WebSphere Application Developer V5.1. I also have a simple client which is subscribing to the topic. I am using Digester (http://jakarta.apache.org/commons/digester.html) to parse the XML. The message is getting passed as it should, but the parsing is failing because of the following reason:
java.net.MalformedURLException: no protocol:-- then is the the xml formatted string.

My problem is how to spin up the *.dtd file. My initial thoughts are to create a web server and place the dtd file in a directory. This will allow validation of the XML and provide the correct protocol.
Based on others experience from this forum, is this sound?
Thanks loads!
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the 'ranch!
Could you post a few lines of the code that leads to this exception of yours?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic