[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: having dtd in a separate file (creating xml document)

  • From: Xan Gregg <xan@t...>
  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Date: Thu, 18 Jan 2001 17:57:48 -0500

xmldocument java
> Relative URI "graphframework.dtd"; can not be resolved without a document
URI

It wants the document URI for the instance XML document.  You supply one via
the SystemId field of the InputSource object.  

xan

-----Original Message-----
From: Kate Lapan [mailto:kate@P...]
Sent: Thursday, January 18, 2001 4:37 PM
To: 'xml-dev@l...'
Subject: having dtd in a separate file (creating xml document)


Current situation:
I have an xml file that has the dtd in the same file.

I would like to separate out the dtd and include it in my xml file.
When I do this I get the following exception when calling 
XmlDocument doc = XmlDocument.createXmlDocument(inputstream, false);

Processing
C:\Peakstone\XMLRepositories\verification\XMLGraphPage0.xmlorg.xml.sax.SAXPa
rseException: Relative URI "graphframework.dtd"; can not be resolved
withouta document URI.
        at com.sun.xml.parser.Parser.fatal(Parser.java:2797)
        at com.sun.xml.parser.Parser.fatal(Parser.java:2791)
        at com.sun.xml.parser.Parser.parseSystemId(Parser.java:2411)
        at com.sun.xml.parser.Parser.maybeExternalID(Parser.java:2389)
        at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1099)
        at com.sun.xml.parser.Parser.parseInternal(Parser.java:480)
        at com.sun.xml.parser.Parser.parse(Parser.java:283)
        at
com.sun.xml.tree.XmlDocument.createXmlDocument(XmlDocument.java:225)
        at
com.sun.xml.tree.XmlDocument.createXmlDocument(XmlDocument.java:184)
        at
com.peakstone.peakstoneserver.PeakstoneServerImpl.startService(PeakstoneServ
erImpl.java, Compiled Code)
        at
com.peakstone.peakstoneserver.PeakstoneServerImpl.main(PeakstoneServerImpl.j
ava:455)

Is there any way to get around this without putting the full path?

Thanks for your help,

Kate

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.