On Mon, 2005-09-26 at 15:30 -0400, Lily wrote:
> After testing I found out the following:
> 
> 1. absolute path doesn't work here: the underline sax parser can not
> find the file. 
> 2. have to use the relative path, which is relative to where you
> invoke your class.
> 
> So, I guess  the parse just append the given file path to its current
> executive directory. 

The xml-parser's parse method takes a URL object. So I would be really
surprised if absolute paths weren't supported. Maybe you could try
  file:///some/file.xml

> 
> As you discoved in the source code, there is no way to set the file
> location via current digester interface and a patch to solve this
> problem will be greatly appreciated.

I'm not very interested in xmlrules, so won't be writing a patch myself.
However if you write one (and a unit test to verify it works) I will
check it and then commit it to the main source code. [and you'll get
credit in the documentation for your contribution!]

Regards,

Simon



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to