Hi Everyone,
This is a library that simplifies working with XML files and XML Trees. It wraps the DotNet library's to provide a simpler way to work with XML. It has been kicking around the web on CgTalk and Tech Artists forum for quote a while so I thought I would post here.
It is implemented as to structs XMLDocument for working with XML files and XMLNode which represents a node in XML. It is very easy to use.
In the script at the bottom there is a complete example script documenting how to use it etc.
If you have any feedback or suggestions please let me know.
Cheers,
Dave
Comments (4)
Comment policy
Hi Dave, thanks for sharing that library, seems much more convenient than the builtin dotnet interface! I ran into a small issue using it though:
This is due to inside LoadXml() a variable doc is set to something else. Since there is no local keyword, if the variable exists it is being overwritten. I would highly recommend to use local/global in scripts to prevent this. Just wanted you to be aware, cheers!
I have updated the file to version 1.2 The new version fix a few bugs that where popping up.
Cheers,
Dave
Yes it should! How did I miss that! Anyways I will upload an update very shortly. I have also added some changes to the getText() method.
Cheers,
Dave
Hey Dave!
I've been searching for something like this for a long time THX!! :)
Just one thing...
when I try to access "GetChild" I got an error
shouldn't the first line of the function be:
dNode = DotNetNode.ChildNodes.ItemOf index ?
it sais DotNetObject instead.
Greets
fxc