Eccemelophile
Eccemelophile

Reputation: 21

Loading XML into memory

I want to read an XML file into memory as a tree of nodes, on which I could perform further operations. Something like C#'s XDocument. What is the Java equivalent of C#'s XDocument.Load?

Upvotes: 2

Views: 2058

Answers (1)

Matt Ball
Matt Ball

Reputation: 359826

You're looking for the Java XML DOM classes, which are part of JAXP. It's much uglier than in C#.

An excellent reference for all this: the JAXP Tutorial, Chapter 3: The Document Object Model.

Upvotes: 6

Related Questions