Bruce  wrote:

>There's no need to use SAX directly when using Castor. Castor uses SAX
>underneath the covers for you. 

right

>All you need to worry about is
>unmarshalling XML into Java and marshalling Java into XML. Upon
>marshalling an XML instance into a Java instance, you simply utilize
>the getters and setters to access the data in the Java instance.
>That's the whole beauty of Castor - no more SAX code!
>
>Based on the classes you generated from the xVRML schema, your should
>unmarshall an XML instance into Java instances (i.e. the generated
>classes) and then utilize the generated classes to access all the
>data.

I was not clear enough in my earlier message...
sorry about that

I am writing an infrastructure for apps involving 
loading/displaying 3D instance documents conforming to the xVRML Schema
and the idea is to notice as each node is loaded
in order to add it to a scenegraph and to display the stuff as it comes in

I can figure out how to unmarshall an instance document as a whole
and I can figure out how to gain access to the root node (World)
and to the root node's immediate child nodes 
(NavigationInfo, WorldInfo, and AvatarList)
but I cannot for the life of me figure out how to
gain access to the children below this ("children" in the Schema)...

my generated classes include a World.getChildren() method
but I cannot seem to figure out how to use 
the GroupingAndChildrenNodes returned by that
to figure out the types of and access the nodes in *it*

Schema docs at: http://www.xvrml.net/docs/core.html
menu for the whole balla-wax at: http://www.xvrml.net/

is my question making more sense now?
sorry for the confusion

jeffs

--
Jeffrey Sonstein
Assistant Professor
Department of Information Technology
Rochester Institute of Technology
--------------------------------------
         http://ariadne.iz.net/~jeffs/
 http://streamer.rit.edu/technobabble/
           http://www.it.rit.edu/~jxs/
http://ariadne.iz.net/~jeffs/jeffs.asc
======================================
there are no bugs
there are just undocumented features



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to