Solved

Can <x:parse be non validating ?

Posted on 2004-04-01
2
287 Views
Last Modified: 2010-05-18
I am extracting XML from a dbase and using jstl xml tag library to parse and display the xml.  The problem I have is that the XML contains a DOCTYPE with a relative DTD declaration eg.

<!DOCTYPE CustomerLoopService SYSTEM "CustomerLoopService.dtd">

As I do not have the DTD and no one knows where it is I get the following error when parsing.

java.io.FileNotFoundException: Could not resolve entity reference: "CustomerLoopService.dtd"
      at weblogic.xml.jaxp.ChainingEntityResolver.resolveEntity(ChainingEntityResolver.java:87)
      at weblogic.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntity(DefaultEntityHandler.java:768)
      at weblogic.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalSubset(DefaultEntityHandler.java:583)
      at weblogic.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java:1161)
      at weblogic.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentScanner.java:2189)
      at weblogic.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.java:2143)
      at weblogic.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XMLDocumentScanner.java:856)
      at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:399)
      at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:1147)
      at weblogic.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:203)
      at weblogic.xml.jaxp.RegistryDocumentBuilder.parse(RegistryDocumentBuilder.java:144)

What I want to know is rather than stripping out the line

<!DOCTYPE CustomerLoopService SYSTEM "CustomerLoopService.dtd">

Can I specify to the <x:parse tag that I want it to be non validating and as a result ignore the DTD declaration ?

Thanks
0
Comment
Question by:crazyman
  • 2
2 Comments
 
LVL 6

Expert Comment

by:jarasa
ID: 10731170
I guess not but maybe you can generate the dtd from the XML if you have a good one.

Javier
0
 
LVL 6

Accepted Solution

by:
jarasa earned 500 total points
ID: 10731196
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
html form inside div 3 91
session bean client machine 9 57
EJB MDB example 4 79
Reading data  from excel sheet and displaying 1 74
With the rapid rise in mobile usage, mobile devices are here to stay and have become an integral part of doing business. Here are 9 great apps for your BYOD environment.
: Microsoft Office Collaborate for free and online versions of Microsoft  Word, Excel, Powerpoint, OneNote, Onedrive , Email, Calendar etc. In short we can say that Microsoft office is a suite of servers, applications and services developed by  Micr…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now