aspose file tools*
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
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: 12769
    
    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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: XML Parser