Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
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
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Subject: Re: SAXBuilder with EntityResolver, XML Schemas, DOCTYPE and namespaces

Subject: Re: SAXBuilder with EntityResolver, XML Schemas, DOCTYPE and namespaces

2007-09-11       - By Paul Libbrecht

 Back

Le 4 oct. 05 ? 22:02, David Patterson a ?crit :

> had a problem trying to use the SAXBuilder to process an XML file  
> that uses namespaces, and has XML Schema validation and uses an  
> EntityResolver to locate the schema files. The XML file also has a  
> DOCTYPE declaration for an entity.  (I mention all of these in case  
> one is known to cause problems.)
>
> I?ve solved the problem (perhaps not in the best way) but wanted to  
> bring it to your attention in case it is a known or unknown bug.
have you tried without the entity-resolver ? Seems like a fancy  
resolver.
> I tried using the build( File), build( InputStream) and build
> ( InputSource), and all fail similarly.  I have tested the correct  
> solution on the File and InputStream versions and they both work  
> the same.
Don't use build(inputStream).
build(File) should work.
build(InputSource) will only be able to resolve relative paths when  
the input-source is set with a system id.

Just a few hints.

paul
<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line
-break: after-white-space; "><BR><DIV><DIV>Le 4 oct. 05 ? 22:02, David Patterson
a ?crit :</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">
<SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing:
0px 0px; color: rgb(0, 0, 0); font-family: Lucida Grande; font-size: 12px; font
-style: normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; text-align: auto; -khtml-text-decorations-in
-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform:
none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><P class
="MsoNormal"><FONT size="2" color="black" face="Arial"><SPAN style="font-size:
10.0pt;color:windowtext; font-family: Arial; font-size: 13.3333px; "><SPAN
class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; ">
had a problem trying to use the SAXBuilder to process an XML file that uses
namespaces, and has XML Schema validation and uses an EntityResolver to locate
the schema files. The XML file also has a DOCTYPE?<SPAN style="font-size: 10
.0pt;color:windowtext; font-family: Arial; font-size: 13.3333px; "><FONT class=
"Apple-style-span" color="#0000DD">declaration for an entity.? (I mention all of
these in case one is known to cause problems.)</FONT></SPAN></SPAN></SPAN><
/FONT></P><P class="MsoNormal"><FONT size="2" color="black" face="Arial"><SPAN
style="font-size: 10.0pt;color:windowtext; font-family: Arial; font-size: 13
.3333px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size:
13.3333px; ">I?ve solved the problem (perhaps not in the best way) but wanted
to bring it to your attention in case it is a known or unknown bug.</SPAN><
/SPAN></FONT></P></SPAN></BLOCKQUOTE>have you tried without the entity-resolver
? Seems like a fancy resolver.<BR><BLOCKQUOTE type="cite"><SPAN class="Apple
-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color:
rgb(0, 0, 0); font-family: Lucida Grande; font-size: 12px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal; line-height:
normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent:
0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white
-space: normal; widows: 2; word-spacing: 0px; "><P class="MsoNormal"><FONT size=
"2" color="black" face="Arial"><SPAN style="font-size: 10.0pt;color:windowtext;
font-family: Arial; font-size: 13.3333px; "><SPAN class="Apple-style-span"
style="font-family: Arial; font-size: 13.3333px; ">I tried using the build(
File), build( InputStream) and build( InputSource), and all fail similarly.? I
have tested the correct solution on the File and InputStream versions and they
both work the same.</SPAN></SPAN></FONT></P></SPAN></BLOCKQUOTE></DIV>Don't use
build(inputStream).<BR><DIV>build(File) should work.</DIV><DIV>build
(InputSource) will only be able to resolve relative paths when the input-source
is set with a system id.</DIV><DIV><BR class="khtml-block-placeholder"></DIV>
<DIV>Just a few hints.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV
>paul</DIV></BODY></HTML>
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)

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