Sure! But you are asking more that simple xml-validity checks. You also want to ensure that SetUseAutoRadius actually exists on the vtk-class and is call-able etc. That's far more complicated than it sounds. However to a great deal, ParaView does give verbose abort-messages in such cases to help user identify missing commands etc. To qualify your comment, ParaView doesn't simply crash when such a filter is created, it aborts with error messages (ofcourse on windows that may seem no different that crashing -- but on linux when running from a terminal, I see nice error messages before it aborts).
Utkarsh On Thu, Dec 3, 2009 at 11:38 AM, David Doria <[email protected]> wrote: > Is there any tool available to "check" an xml file before loading it? > Often when I apply a plugin filter, Paraview simply crashes. It is > always due to an error in my xml file, but I have to go searching for > it manually. Could something be developed to do things like ensure > when you have command="SetUseAutoRadius" that SetUseAutoRadius() > actually exists in the filter? Currently when a plugin fails there is > a lot of guess work and manual hunting that would be nice to replace > by some kind of automatic parser/checker/tester. > > Does anyone understand what I mean / agree? > > Thanks, > > David > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://www.paraview.org/mailman/listinfo/paraview > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
