Solved

Question about parsing XML.

Posted on 2006-07-05
2
232 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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
eclipse apache tomcat admin console 52 123
iterator/ListIterator approach 17 39
jsp insert to database example 2 47
sql import cannot be resolved jsp 3 49
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 Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

828 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