Hi Chris,

Yeah, I gave that a try and I still got the same problem. I did confirm
that it actually is the import javax.xml.parsers.DocumentBuilder method
parse() that has the problem with the # in the filename. Interestingly
enough the java.io.File class doesn't seem to have a problem with this.

So I just made a somewhat ugly kludge to copy the files to a tmp dir and
rename them and read them from there. The original name of the XML file
is an attr in one of the tags within the file, so I'm ok that way.

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED] On Behalf Of Chris Weber
Sent: Monday, September 15, 2003 2:39 PM
To: [EMAIL PROTECTED]
Subject: Re: Java, XML and '#' in filenames


Did you try escaping the "#" signs in your string (e.g. "foo#com.foo" ->
"foo\#com.foo")?  I'm not 100% sure that that would work, but is worth a
try.

HTH,
Chris


----Original Message Follows----
From: David Mitchell <[EMAIL PROTECTED]>
Reply-To: A mailing list about Java Server Pages specification and
reference

========================================================================
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to