This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XML Parser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML Parser" Watch "XML Parser" New topic
Author

XML Parser

vignesh Thamarai
Ranch Hand

Joined: Mar 10, 2009
Posts: 31
How to write our own xml parser without using DOM and SAX, is it possible? what is the approach for these task ?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12891
    
    5
Of course it is possible, how do you think all these different parsers got written?

You need two things:
1. Good grip on basic operations with Java Strings and regex expressions.
2. The formal definition of XML - start here at the W3C.

It would also be good if you could figure out exactly what you want as output

Bill
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: XML Parser