I know some Java xml parsers like the one from Oracle use classpath to locate the xml
files, for Xerces, it may use the current directory as the base directory ( I am not
100% sure about this ), then you may try to force your current directory to be the
current xml directory.
It is more an XML question, I suggest you submit to another xml group.
Regards,
Hui
-----Original Message-----
From: icewind [mailto:[EMAIL PROTECTED]]
Sent: Fri 2/14/2003 3:37 PM
To: Lucene Users List
Cc:
Subject: RE: indexing xml files with relative links to dtds
Ok, I used parser.setFeature to turn the validation
off. This helps, but it turns out there are entity
references in the XML files as well. These are causing
the same problems the DTD references were causing
before...
Any suggestions with regards to this?
Thanks,
--- Hui Ouyang <[EMAIL PROTECTED]> wrote:
> I think you can turn the validation off to avoid
> checking the DTD file.
> Regards
> Hui
>
> -----Original Message-----
> From: icewind [mailto:[EMAIL PROTECTED]]
> Sent: Fri 2/14/2003 3:08 PM
> To: [EMAIL PROTECTED]
> Cc:
> Subject: indexing xml files with relative links to
> dtds
>
>
>
> Hi,
>
> I am using Lucene to index a collection of XML
> documents. Each XML document a relative pathname
> to a
> DTD file in the DOCTYPE tag. The problem is that
> the
> relative path names are resolved relative to where
> I
> run the indexer class rather than relative to XML
> file
> being parsed, which is the correct behavior.
>
> I am using Xerces to parse the XML files.
>
> Has anyone run into this problem? Is there a way to
> change the working directory (as in the chdir()
> system
> call)? Is this something that I have to set up with
> the parser itself or at the JVM level?
>
> Thanks for any suggestions..
>
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> http://shopping.yahoo.com
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
>
> >
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]
__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]