File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Newbie Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Newbie Question" Watch "Newbie Question" New topic

Newbie Question

Russ Ray
Ranch Hand

Joined: Feb 11, 2003
Posts: 52
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 ( to parse the XML. The message is getting passed as it should, but the parsing is failing because of the following reason: 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

Joined: Jan 23, 2002
Posts: 11962
Welcome to the 'ranch!
Could you post a few lines of the code that leads to this exception of yours?

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: Newbie Question
It's not a secret anymore!