-
DOM
Visit all elements in DOM document
This is an example of how to visit all elements in a DOM Document. A DOM is a standard tree structure,…
Read More » -
DOM
Remove attribute from DOM element
With this example we are going to demonstrate how to remove an attribute from a DOM Element. We have implemented…
Read More » -
DOM
Remove nodes from DOM document recursively
In this example we shall show you how to remove Nodes from a DOM Document recursively. We have implemented two methods,…
Read More » -
DOM
Create DOM document from scratch
This is an example of how to create a DOM Document from Scratch. We have implemented a method, that is void…
Read More » -
DOM
Add node to DOM document
With this example we are going to demonstrate how to add a Node to a DOM Document. We have implemented…
Read More » -
DOM
Add CDATA section to DOM document
In this example we shall show you how to add CDATASection to a DOM Document. We have implemented a method, that…
Read More » -
DOM
Pretty print XML in Java
This is an example of how to pretty print an xml file in Java. We have implemented a method, that is…
Read More » -
DOM
Create empty DOM document
With this example we are going to demonstrate how to create an empty DOM Document, that represents the entire HTML…
Read More » -
SAX
Get element attributes in SAX XML parsing
In this example we shall show you how to get an Element’s Attributes using SAX XML parsing. Simple API for…
Read More » -
threads
Dinning Philosophers deadlock example
This is an example of the Dining Philosophers’ problem. A short description of the problem shows that there are N…
Read More »