Well, we're at least we're getting closer :)
It seems that the DTD being pointed to is not valid.
Now I'm getting the following error with the file you gave me:
Fatal Error: URI=http://www.web3d.org/specification/x3d/x3d-3.0.dtd Line=1: The markup declarations
contained or pointed to by the document type declaration must be well-formed.
org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type
declaration must be well-formed.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.ja
va:232)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213)
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:366)
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296)
at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1244)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(XMLDTDScannerImpl.java:1839)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset(XMLDTDScannerImpl.java:295
)
at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerIm
pl.java:820)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentSca
nnerImpl.java:333)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.j
ava:529)
at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.j
ava:585)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1148)
at org.web3d.parser.GeneralisedReader.parse(GeneralisedReader.java:204)
at org.web3d.vrml.nodes.loader.DefaultWorldLoader.loadNow(DefaultWorldLoader.java:144)
at org.web3d.vrml.nodes.loader.DefaultWorldLoader.loadNow(DefaultWorldLoader.java:95)
at org.mikemccutcheon.sandbox.java3d.cubeworld.X3DUtil.loadX3D(X3DUtil.java:142)
at org.mikemccutcheon.sandbox.java3d.cubeworld.TestWorldBranch.init(TestWorldBranch.java:246
)
at org.mikemccutcheon.sandbox.java3d.cubeworld.Controller.<init>(Controller.java:123)
at org.mikemccutcheon.sandbox.java3d.cubeworld.Controller.main(Controller.java:48)
Alan Hudson wrote:
Michael P. McCutcheon wrote:
Yes...you were correct...it was a problem with my classpath. (I have
fixed it)...BUT,
Now I'm having different problems...it keeps saying that my PUBLIC ID is
incorrect. See attached
x3d file.
The DOCTYPE was taken directly out of the documentation for the startDTD
method of the
org.web3d.x3d.jaxp.X3DSAVAdapter class. So I can't figure out why it
keeps bombing out.
I've tried various doctypes (listed in the X3DCOnstants), but no matter
what, it keeps bombing out here:
I've attached a fixed version.
The DOCTYPE was not correct, and the X3D tag was missing a profile
statement, I selected Interactive, you might want Immersive for larger
scenes.
--
Alan Hudson
President: Yumetech, Inc. http://www.yumetech.com/
Web3D Open Source Chair http://www.web3d.org/TaskGroups/source/
------------------------------------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE X3D PUBLIC "+//Web3D//DTD X3D 3.0 Interactive//EN"
"http://www.web3d.org/specification/x3d/x3d-3.0.dtd">
<X3D profile="Interactive">
<Scene>
<Transform translation="0 0 -3" >
<Shape>
<Sphere radius=".5" />
<Appearance>
<Material diffuseColor="0 1 0" />
</Appearance>
</Shape>
</Transform>
</Scene>
</X3D>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".