 				3. Else throw a TypeError exception
 			*/
 			//Do nothing for XML objects?
+			throw new Error("Cannot call delete on XML");
 		}
 
 		/**

					if(lastChild && lastChild.nodeKind() == "text")
					{
						child.setValue(child.text() + lastChild.text());
						this.removeChildAt(i+1);
					}
					if(!child.text())
						this.removeChildAt(i);
				}
				lastChild = child;
			}

			
			return xml;
		}

		private function deleteChildAt(idx:int):void
		{

		}
		
		/**
		 * Returns all descendants (children, grandchildren, great-grandchildren, and so on) of the XML object that have the given name parameter.
