Solved

Question about parsing XML.

Posted on 2006-07-05
2
234 Views
Last Modified: 2010-03-31
Hi, I have a simple web.xml file which I use DOM parsing to parse the elements in them to do find and replace function on that file.
On my machine I noticed that I get the header below after I sucessfully parsed my file.

<?xml version="1.0" encoding="ISO-8859-1"?>  
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">

However, I sent this as part of the application to a client and he can not get the function find and replace to work.  I really have no idea why or where to start to find out the reason for this.  From your experience, do you think different machine created different type of xml header and thus changes the characteristic of the file and make them unparsable?  


0
Comment
Question by:fylix0000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
Ajay-Singh earned 500 total points
ID: 17045261
You need to make sure that the client has network connection to download
http://java.sun.com/dtd/web-app_2_3.dtd

Its good idea to bundle "/dtd/web-app_2_3.dtd" can ship as part of package to the client.
0
 

Author Comment

by:fylix0000
ID: 17052820
Thanks
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
The viewer will learn how to implement Singleton Design Pattern in Java.

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question