wood burning stoves 2.0*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 12809
    
    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
 
jQuery in Action, 2nd edition
 
subject: XML Parser