I've tried all of the ones you listed...but it still keeps getting the same error.  Here are the
ones I tried:

<!DOCTYPE X3D PUBLIC "+//Web3D//DTD X3D 3.0//EN" "http://www.web3d.org/specification/x3d/x3d-3_0.dtd";>

<!DOCTYPE X3D PUBLIC "+//Web3D//DTD X3D 3.0 Interchange//EN"
"http://www.web3d.org/specification/x3d/x3d-3_0.dtd";>

<!DOCTYPE X3D PUBLIC "+//Web3D//DTD X3D 3.0 Interactive//EN"
"http://www.web3d.org/specification/x3d/x3d-3_0.dtd";>

<!DOCTYPE X3D PUBLIC "+//Web3D//DTD X3D 3.0 Immersive//EN"
"http://www.web3d.org/specification/x3d/x3d-3_0.dtd";>

<!DOCTYPE X3D PUBLIC "+//Web3D//DTD X3D 3.0 Full//EN"
"http://www.web3d.org/specification/x3d/x3d-3_0.dtd";>

<?xml version="1.0"?>
<!DOCTYPE X3D PUBLIC "+//Web3D//DTD X3D 3.0 Full//EN"
"http://www.web3d.org/specification/x3d/x3d-3_0.dtd";>
<X3D>
  <Scene>
    <Transform translation="0 0 -3" >
      <Shape>
        <Sphere radius=".5" />
        <Appearance>
          <Material diffuseColor="0 1 0" />
        </Appearance>
      </Shape>
    </Transform>
  </Scene>
</X3D>

It seems like the doctype may not be getting read by the x3d parser correctly (maybe it's null or
something.)?  I don't know.  I'm using JDK 1.4.1_01 on Windows 2000 with Java3D 1.3.1 beta.  The X3D
version I'm using is the pre-compiled (M6 version) .jars in the .tar download from web3d.org.

I'm having the same problem at work on an NT machine.

Is anyone else experienceing this problem?

(if you could copy to [EMAIL PROTECTED] that would be nice too :)

Mike


Justin Couch wrote:
Michael P. McCutcheon wrote:

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.

The spec is slightly different to the documentation in that it has moved
on a fraction since then. If you have a look at the class X3DConstants,
that will give you the list of acceptable public and system identifiers.
The first character, being an ISO specification, should be a '+' not a
'-'. For reference here is what is permitted:

"+//Web3D//DTD X3D 3.0//EN";
"+//Web3D//DTD X3D 3.0 Interchange//EN";
"+//Web3D//DTD X3D 3.0 Interactive//EN";
"+//Web3D//DTD X3D 3.0 Immersive//EN";
"+//Web3D//DTD X3D 3.0 Full//EN";

--
Justin Couch                         http://www.vlc.com.au/~justin/
Java Architect & Bit Twiddler              http://www.yumetech.com/
Author, Java 3D FAQ Maintainer                  http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
                                              - Greg Bear, Slant
-------------------------------------------------------------------

===========================================================================
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".

===========================================================================
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".

Reply via email to