[jdom-interest] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basi c 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"> error?

Jason Long jason at jmlie.com
Sat Nov 17 08:58:13 PST 2001


I have attached the stack trace for both the SAXBuilder and DOMBuilder.  For
some reason my email software kept wrapping the text and not seeing the
newlines.
I really want to just ignore the doctype declaration all together when
building these documents.

Thanks for your help,

Jason Long
JML Internet Enterprises - www.jmlie.com
BS Physics, MS Chemical Engineering


-----Original Message-----
From: jdom-interest-admin at jdom.org
[mailto:jdom-interest-admin at jdom.org]On Behalf Of
philip.nelson at omniresources.com
Sent: Saturday, November 17, 2001 7:59 AM
To: jason at jmlie.com; jdom-interest at jdom.org
Subject: RE: [jdom-interest] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
Basi c 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
error?


You don't actually say what the error is?!

> -----Original Message-----
> From: Jason Long [mailto:jason at jmlie.com]
> Sent: Saturday, November 17, 2001 3:15 AM
> To: JDOM
> Subject: RE: [jdom-interest] <!DOCTYPE html PUBLIC
> "-//W3C//DTD XHTML Basic 1.0//EN"
> "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"> error?
>
>
> It is the colon in the url that seems to be causing the
> problem.  The DOCTYPE is from the orginal document take from
> the web, and it is left unchanged by JTidy.  I would
> appreciate any assistance in resolving this matter.
>
> -----Original Message-----
> From: jdom-interest-admin at jdom.org
> [mailto:jdom-interest-admin at jdom.org]On Behalf > Of Jason Long
>
> Sent: Friday, November 16, 2001 4:38 PM
> To: JDOM
> Subject: [jdom-interest] <!DOCTYPE html PUBLIC "-//W3C//DTD
> XHTML Basic 1.0//EN"
"http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"> error?


I am writing an application that makes use of JTidy and JDOM.  I use JTidy
to grab a page and convert it to DOM and then convert DOM to JDOM.  There is
no error throw by JTidy.  I get an error with both the DOMBuilder and
SAXBuilder due to the following PI found.

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
"http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">

What is the best way to deal with this?

Jason Long
JML Internet Enterprises - www.jmlie.com
BS Physics, MS Chemical Engineering

_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com

_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
-------------- next part --------------
SaxBuilder:
org.jdom.JDOMException: Error in building: The target "IS10744:arch" is not legal for JDOM/XML Processing Instructions: Processing instruction targets cannot contain colons.
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:306)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:617)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:599)
	at MP3_Publisher.doGet(MP3_Publisher.java:83)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:539)
Caused by: org.jdom.IllegalTargetException: The target "IS10744:arch" is not legal for JDOM/XML Processing Instructions: Processing instruction targets cannot contain colons.
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:287)
	... 14 more
Root cause: org.jdom.IllegalTargetException: The target "IS10744:arch" is not legal for JDOM/XML Processing Instructions: Processing instruction targets cannot contain colons.
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:287)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:617)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:599)
	at MP3_Publisher.doGet(MP3_Publisher.java:83)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:539)
Root cause: org.jdom.IllegalTargetException: The target "IS10744:arch" is not legal for JDOM/XML Processing Instructions: Processing instruction targets cannot contain colons.
	at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:287)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:617)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:599)
	at MP3_Publisher.doGet(MP3_Publisher.java:83)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:539)
---------------------------------------------------------------------------------------------------------------------------------------
DOMBuilder:
org.jdom.IllegalTargetException: The target "null" is not legal for JDOM/XML Processing Instructions: XML names cannot be null or empty.
	at org.jdom.ProcessingInstruction.<init>(ProcessingInstruction.java:146)
	at org.jdom.input.DefaultJDOMFactory.processingInstruction(DefaultJDOMFactory.java:140)
	at org.jdom.input.DOMBuilder.buildTree(DOMBuilder.java:479)
	at org.jdom.input.DOMBuilder.buildTree(DOMBuilder.java:377)
	at org.jdom.input.DOMBuilder.build(DOMBuilder.java:338)
	at com.jmlie.JDOMHelper.getJDOM(JDOMHelper.java:56)
	at com.jmlie.MP3_Publisher.MP3FileHarvester.getAlbumSongs(MP3FileHarvester.java:43)
	at MP3_Publisher.doGet(MP3_Publisher.java:126)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:539)
java.lang.NullPointerException
	at org.jaxen.jdom.DocumentNavigator.getDocumentNode(DocumentNavigator.java:246)
	at org.jaxen.expr.DefaultAbsoluteLocationPath.evaluate(DefaultAbsoluteLocationPath.java:52)
	at org.jaxen.expr.DefaultXPath.asList(DefaultXPath.java:46)
	at org.jaxen.JaXPath.jaSelectNodes(JaXPath.java:35)
	at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:22)
	at com.jmlie.JDOMHelper.selectJDOMNodes(JDOMHelper.java:65)
	at com.jmlie.MP3_Publisher.MP3FileHarvester.getAlbumSongs(MP3FileHarvester.java:47)
	at MP3_Publisher.doGet(MP3_Publisher.java:126)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:539)
java.lang.NullPointerException
	at com.jmlie.MP3_Publisher.MP3FileHarvester.getAlbumSongs(MP3FileHarvester.java:48)
	at MP3_Publisher.doGet(MP3_Publisher.java:126)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:539)
---------------------------------------------------------------------------------------------------------------------------------------



More information about the jdom-interest mailing list