O'Reilly logo

XML Companion, The, Third Edition by Neil Bradley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Document extensions

The Document interface retains all the existing methods:

					DocumentType      getDoctype();
					DOMImplementation getImplementation();
					Element           getDocumentElement();
					NodeList          getElementsByTagName(String tagName);
					Element           createElement(String tagName)
					throws DOMException;
					DocumentFragment  createDocumentFragment();
					Text              createTextNode(String data);
					Comment           createComment(String data);
					CDATASection      createCDATASection(String data)
					throws DOMException;
					ProcessingInstruction
					createProcessingInstruction(String target,
					String data)
					throws DOMException;
					Attr              createAttribute(String name)
					throws DOMException;
					EntityReference   createEntityReference(String name)
					throws DOMException;
				

But a number of methods have also been added. Mostly, they handle ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required