Solved

Question about parsing XML.

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Running Jira on Raspberry PI 2? 3 127
Java and GPO 11 47
mockito example issue 8 33
Cipher Configuration on Apache HTTPD 4 20
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now