   | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | |  | SV: [jdom-interest] One less TODO item | SV: [jdom-interest] One less TODO item 2003-10-07 - By Per Norrman
Back Hmm,
I thought it was the SAXParsers (or XMLReader) that resolved the relative URI. If I supply an EntityResolver to either crimson or xerces, the system id is already resolved when the callback is made. How do you work around that in XOM? Or does it have its own parser?
/pmn
> -- --Ursprungligt meddelande-- -- > Fr?n: Elliotte Rusty Harold [mailto:elharo@(protected)] > Skickat: den 7 oktober 2003 16:19 > Till: Per Norrman; jdom-interest@(protected) > ?mne: Re: [jdom-interest] One less TODO item > > > At 12:26 PM +0200 10/7/03, Per Norrman wrote: > > > > >This is *not* a JDOM bug. It is the SAXParser's responsibility to > >resolve the system identifier and create the input source. > This seems > >to be a dark area where magic is necessary, crimson and > xerces does it > >differently, and at least crimson gets it wrong. > > It's not JDOM's fault, but it is something JDOM needs to work around. > XOM successfully works around it for the case of pathless URLs like > http://www.cafeconleche.org > > However, I have not yet devised a workaround that can handle URLs > like http://www.ibiblio.org/xml where /xml might be a directory and > might be a filename, and you really have to ask the server to find > out which. :-( > > -- > > 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) .com
Earn $52 per hosting referral at Lunarpages.
|
|
 |