This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Java/XML/JSON" Watch "Java/XML/JSON" New topic


Maurizzio de león

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:
subject: Java/XML/JSON
It's not a secret anymore!