Toadwart
September 22nd, 2007, 00:55
I found the information in the Ruleset Modification Guide confusing in relation to node identifiers for module data. I think an example nodeid would also be helpful for this scenario.
The documentation says to prefix the identifier with @ followed by the modulename. Which I took to mean:
DB.findNode("@modulename.nodename.subnodename").
It should say to append the @modulename as a suffix. The correct syntax being:
DB.findNode("nodename.subnodename@modulename")
What really confused things for me though was was the fact that DB.findNode("@modulename.nodename") doesn't return nil (as the documentation says it should). It returns a reference to the root node of db.xml!
The documentation says to prefix the identifier with @ followed by the modulename. Which I took to mean:
DB.findNode("@modulename.nodename.subnodename").
It should say to append the @modulename as a suffix. The correct syntax being:
DB.findNode("nodename.subnodename@modulename")
What really confused things for me though was was the fact that DB.findNode("@modulename.nodename") doesn't return nil (as the documentation says it should). It returns a reference to the root node of db.xml!