Read XML files

Hi all,
I wonder if it’s possible to use an XML file to store data and read it with RhinoScript similar to the way it works with ini files?

thanks, Tobias


yes this works if you import System.Xml. Examples to read can be found in this and this thread.


Hi Clement,
Yeah, in Python it’s straight forward, but I wanted to connect it to RhinoScript…


Hi Tobias,

maybe this is useful ?


Hey, I just had a very quick view but it looks promising. Thank you. Good find!


In case you are processing huge and complex XML, you can try SAX approach. For example, here is one script I’ve did: The handler object there is specific to my project and maybe bit overcomplicated but idea is there.