Thursday, August 16, 2012
Jdom CRUD Operations
Hi,
Jdom CRUD Operations
Here is sample code to do some operations like
//Adding elements
public void addElementAtXpath() {
try {
XPath xpath = XPath.newInstance("publishers");
...
Wednesday, August 8, 2012
Eclisep Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf

Eclisep Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf
If you face this issue in eclipse while running a standalone java application. Eclipse will allocate only 384 MB of Java heap memory. based on the type of JRE you are using and...
Thursday, August 2, 2012
JDOM - How to insert an element, after another
JDOM - How to insert an element, after another
private Document document_ = null;
private Element root_ = null;
@Test
public void generateXml() {
//Url path of the file
String filePath = "http://172.................. .xml";
...
Subscribe to:
Posts (Atom)