[jdom-interest] Newbie can't parse document!

Gary Bentley gb at opengroup.org
Wed Mar 7 09:27:39 PST 2001


Probably the proxy.  The dtd is accessible...I looked...

Try setting the proxy at startup or in code using the System.setProperty.

G.

-----Original Message-----
From: Alex Colic [mailto:alex.colic at pop-ware.com]
Sent: Wednesday, March 07, 2001 5:02 PM
To: Jon Baer; Gary Bentley
Cc: jdom-interest at jdom.org
Subject: Re: [jdom-interest] Newbie can't parse document!


HI,

I tried to read a different file and it worked. Therefore the code I am
using should be ok but the file I am reading is not. I have checked the two
files and the only difference is that one as a dtd and the other does not. I
have created the builder using the (false) constructor so I thought that
this would bypass the dtd.

The top part of the web.xml file is:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">

Where I work we use a proxy server so I cannot ping java.sun.com.

Is the dtd or proxy causing this problem?

Alex

----- Original Message -----
From: "Jon Baer" <jonbaer at digitalanywhere.com>
To: "Gary Bentley" <gb at opengroup.org>
Cc: "Alex Colic" <alex.colic at pop-ware.com>; <jdom-interest at jdom.org>
Sent: Wednesday, March 07, 2001 11:57 AM
Subject: Re: [jdom-interest] Newbie can't parse document!


> Actually all File objects should use
> System.getProperty("file.separator"), but your error message is a little
> wierd because it shows up @ where it actually tests for an XMLFilter it
> seems root = (XMLFilter)root.getParent(); can you post more source for
> your test file?
>
> - Jon
>
>






More information about the jdom-interest mailing list