Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Question about parsing XML.

Posted on 2006-07-05
2
Medium Priority
?
237 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 2000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

916 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