Dom Insertion
This is easy to understand. See http://msdn2.microsoft.com/en-us/library/bb250448.aspx In short: use appandChild top-down and removeChild bottom-up.