I complained earlier in another thread - that it seemed a "waste" to have create an element as a child of the entire document, then later to have to add the element as a child of some other element ....

Lesson learned number two:

This isn't necessarily a bad thing - I learned that it is advantageous to be able to create an element, and to populate it with attributes and sub-elements - then to be able to later make the determination whether to actually add it as a child.

This ability really helped me in my GRID script - i was able to skip-over having to save CELL elements that only contained default settings (therefore don't need to be saved) - this speeds up the "loading" of the grid later on.

-Shawn