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 ...

Get XML Companion, The, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.