ScriptSpot home

Simple XML Library for 3dsMax

Downloads

Other files

3ds Max compatibility
See original listing claims
Community compatibilityNo compatibility reports yet

No reports yet for the available releases.

Community reviewsNo reviews yet.

Listing details

Version
1.2
From original requirements
9 or newer
Original version requirement
Max 9+
Author’s update date
Legacy votes
27
Listing created
How compatibility works

Compatibility comes from the author’s supported range or requirements in the original listing. A tested version records what the author tried.

“2020 unconfirmed” in the catalog means support for 3ds Max 2020 is still unknown.

Community reports record successful tests on specific releases.

Posted by

dandg

Credited author: David Mackenzie

More by this author

Description

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)
br0t

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:


xmlfile = "..." 
doc = XmlDocument() 
doc.LoadXml xmlfile 
-- fail, doc is now undefined

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!

dandg

I have updated the file to version 1.2 The new version fix a few bugs that where popping up.

Cheers,
Dave

dandg

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

fxcalibur

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