OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] how to resolve a url within the xml document during parsin

[ Lists Home | Date Index | Thread Index ]
  • To: xml dev <xml-dev@lists.xml.org>
  • Subject: Re: [xml-dev] how to resolve a url within the xml document during parsing? (Sax/Java)
  • From: Anil Philip <goodnewsforyou@yahoo.com>
  • Date: Sat, 31 Dec 2005 21:51:41 -0800 (PST)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=K3B+dx/I2wG/S2ZXjPpxrlhEW9Ha+plrFNPbTE7y3D3E6tdNczSrCoVpNCEHaClnjkMlO5/duexw27QwQcnF0NgAxAL4+tyOtvbmAg2P5SLGF9uXp4BJWPKfM4p9/pC8GnJTHm9xDOkeqHr2Ey4hnzi+4s3cfB136mMliUJErT4= ;
  • In-reply-to: <20060101035205.92677.qmail@web52706.mail.yahoo.com>

I split up the URL into
URL("http://foo.com/anilp/","http:./peace_files";)
 and that fixed it.
thanks,
Anil

--- Anil Philip <goodnewsforyou@yahoo.com> wrote:
> 
> 2) If my xml file peace.xml is at server foo.com in
> the directory
> wwwroot/foo.com/anilp, then if it contains a base
> url
> in
> the format:
> 
> <origin xml:base="http:/./peace_files"
> href="joy.spx">  </origin> 
> During parsing, can we know the url of the document
> (joy.spx)
> and translate to the absolute url? 
> 
> I tried using the URL constructor to do thus within
> the parser - for example
> 
> new
>
URL("http://foo.com/anilp/peace.xml","./peace_files";)
> 
> However the URL printed is unexpectedly:
> http://foo.com/peace_files
> 
> Question: how can I get the base url for the joy.spx
> file?
> which is http://foo.com/anilp/peace_files/
> 
> Any help appreciated and Happy New Year!
> thanks,
> Anil
> 
> 
> 
> 
> 
> 	
> 		
> __________________________________ 
> Yahoo! for Good - Make a difference this year. 
> http://brand.yahoo.com/cybergivingweek2005/
> 
>
-----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org
> <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
> 
> The list archives are at
> http://lists.xml.org/archives/xml-dev/
> 
> To subscribe or unsubscribe from this list use the
> subscription
> manager:
> <http://www.oasis-open.org/mlmanage/index.php>
> 
> 



		
__________________________________________ 
Yahoo! DSL  Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS