Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

Re: SV: SV: [jdom-interest] One less TODO item

Elliotte Rusty Harold

2003-10-07

Replies:

Also relevant to this consider the case of a redirected request. RFC
2396 states

If no base URI is embedded and the document is not encapsulated
  within some other entity (e.g., the top level of a composite entity),
  then, if a URI was used to retrieve the base document, that URI shall
  be considered the base URI. Note that if the retrieval was the
  result of a redirected request, the last URI used (i.e., that which
  resulted in the actual retrieval of the document) is the base URI.

I'm not sure if Xerces is correctly updating the XML parser with the
actual redirected base URI or not. I should write a test case for
that and find out.

--

 Elliotte Rusty Harold
 elharo@(protected)
 Processing XML with Java (Addison-Wesley, 2002)
 http://www.cafeconleche.org/books/xmljava
 http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.