Is there any sample code for creating/exporting a scene with some primitives?
May be it can be found in some project using this library?
Or I am totally wrong and the optimal tool for X3D output (and nothing else) is a XML library, while using an X3D library just to write an X3D export module for my program is overkill?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yeah, I'm afraid I do not have samples. If all you are trying to do is create an XML document to save in an XML file, using the X3D library will probably not help you that much.
Creating a DOM with an XML library is probably what's the easiest. Then you can use an XML tool that checks your output against the X3D DTD. Note that many libraries do not support the DTD as it is quite complex. This being said, you can use XML library A to generate your file, and XML tool B to verify the file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there any sample code for creating/exporting a scene with some primitives?
May be it can be found in some project using this library?
Or I am totally wrong and the optimal tool for X3D output (and nothing else) is a XML library, while using an X3D library just to write an X3D export module for my program is overkill?
I would like to see one for reading and storing the parameters contained in an X3D file.
Yeah, I'm afraid I do not have samples. If all you are trying to do is create an XML document to save in an XML file, using the X3D library will probably not help you that much.
Creating a DOM with an XML library is probably what's the easiest. Then you can use an XML tool that checks your output against the X3D DTD. Note that many libraries do not support the DTD as it is quite complex. This being said, you can use XML library A to generate your file, and XML tool B to verify the file.