[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: how to resolve a url within the xml document during parsin

  • To: xml dev <xml-dev@l...>
  • Subject: Re: how to resolve a url within the xml document during parsing? (Sax/Java)
  • From: Anil Philip <goodnewsforyou@y...>
  • 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@w...>

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

--- Anil Philip <goodnewsforyou@y...> 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 


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.