Thank you, Michael, it worked.

Best regards!

----- Original Message ----
From: Michael Glavassevich <[EMAIL PROTECTED]>
To: j-users@xerces.apache.org
Sent: Monday, June 11, 2007 7:33:04 PM
Subject: Re: Xerces-J and XInclude relative path issue

Hi Razvan,

XMLLocatorWrapper won't help you with that. Most likely you haven't 
provided a base URI, in which case you need to set the system ID [1] on 
the InputSource you're passing to the parser.

Thanks.

[1] 
http://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/InputSource.html#setSystemId(java.lang.String)

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

Razvan Mihailescu <[EMAIL PROTECTED]> wrote on 06/11/2007 09:20:46 AM:

> Hi, Michael,
> 
> I have a master .xml file (artefacts.xml) having
> references to other .xml files to be included
> (codelists.xml etc.). The path from the working dir,
> where my xml files are located, is /resources. My
> problem is that when I try to parse that document with
> SAX parser, I got some error telling me that the
> codelists.xml file could not be found on the path -
> and I can see the absolute path to the working dir,
> not to /resources dir.
> Here are my XMLs, in short:
> 
> artefacts.xml
> <Structure xmlns:xi="http://www.w3.org/2001/XInclude";;>
>   <xi:include href="codelists.xml"/>
> </Structure>
> 
> codelists.xml
> <CodeLists>
> </CodeLists>
> 
> Thank you!
> Razvan
> --- Michael Glavassevich <[EMAIL PROTECTED]> wrote:
> 
> > Hi Razvan,
> > 
> > Though I don't see how this is relevant to whatever
> > "relative path" issue 
> > you've run into, if you want to see how
> > XMLLocatorWrapper is being used in 
> > Xerces take a look at XIncludeHandler [1].
> > 
> > Thanks.
> > 
> > [1] 
> >
> http://svn.apache.
> 
org/viewvc/xerces/java/trunk/src/org/apache/xerces/xinclude/XIncludeHandler.
> java?view=log
> > 
> > Michael Glavassevich
> > XML Parser Development
> > IBM Toronto Lab
> > E-mail: [EMAIL PROTECTED]
> > E-mail: [EMAIL PROTECTED]
> > 
> > Razvan Mihailescu <[EMAIL PROTECTED]> wrote on
> > 06/11/2007 07:50:01 AM:
> > 
> > > Hello,
> > > 
> > > I read on your Jira Xerces site about
> > XERCESJ-1247.
> > > Can you please show me a small code snipet (or
> > tell me
> > > which SVN files to check) with sample usage of
> > > XMLLocatorWrapper?
> > > 
> > > Best Regards,
> > > Razvan Mihailescu-Baltag
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
____________________________________________________________________________________
> The fish are biting. 
> Get more visitors on your site using Yahoo! Search Marketing.
> http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
> 
> ---------------------------------------------------------------------
> 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]






       
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

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

Reply via email to