I have a program in which I've created a JDOM document with various elements. I want to take the JDOM Document and extract the stuff inside the element tags ( these things <>) as a string. Any suggestions?
I don't know if I need to use the JDOM transformer or the javax.xml transformer. I don't know how to use either one. Any help would be fantastic.
Here's some of my code:
Element root = new ELement("Login");
Document doc = new Document(root);
I'm getting this when I print the document to the console:
I need to get myName in a string format.