[vtkusers] XML File Format Examples?

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Wed May 21 01:49:28 EDT 2003


>>>>> "DCG" == Daniel C Go <Daniel> writes:

    DCG> Hello VTKers, After doing some search, I am wondering if
    DCG> anyone knows where I can find examples using various XML file
    DCG> readers or writers like vtkvtkXMLUnstructuredDataReader? I
    DCG> certainly would try to figure out myself, but having an
    DCG> example would greatly beneficial. If anyone could kindly
    DCG> supply some code, pseudo or not, that would be very nice!
    DCG> Thank you!

FWIW there is a VTK old format to XML file format converter script in
Utilities/vtk2xml.py in CVS.

The XML reader API is pretty straightforward and I dont see why you
should have serious problems using it after a little experimentation.
Keep the docs handy.

If you are _really_ desperate for real code you might want to read
MayaVi's XML data reader module.

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mayavi/mayavi/Sources/VtkXMLDataReader.py?rev=1.4&content-type=text/vnd.viewcvs-markup

The code there is pretty messy but you might find a few tips there.

cheers,
prabhu



More information about the vtkusers mailing list