File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Java/XML/JSON Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Java/XML/JSON" Watch "Java/XML/JSON" New topic
Author

Java/XML/JSON

Maurizzio de león
Greenhorn

Joined: Jun 28, 2014
Posts: 1
Hi friends,
I have a big doubt.
How I can save the data of an XML file to a list or array in JAVA?

It's a school project, I can not use special libraries like JDOM or JParser etc.

If only you could help me with the idea on saving would appreciate it very much. I was using indexOf and lastIndexOf.

Also how I can convert XML files to JSON or JSON to XML? No special libraries.

Thank you very much friends.
Anindya Roy
Ranch Hand

Joined: May 11, 2014
Posts: 76
read the xml file or string in java. read each node of the xml file in java.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java/XML/JSON