Sure you can write an XML parser in java, but I would like to know if you really want to reinvent the wheel. Writing a parser is not an easy job and you wouldn't want to waste time and effort when there are so many of them avaiable out there for free!!
I am not sure if I understood your question correctly, but I would certainly discourage you from writing yet another XML parser. Does that help?? ------------------ Ajith Kallambella M. Sun Certified Programmer for the Java�2 Platform. IBM Certified Developer - XML and Related Technologies, V1.
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
You can download a many free XML Parsers, I am currently working with Xerces which is Apaches XML parser. Its working fine and hasnt been hard to use. here's the site if you want to give it a shot. http://xml.apache.org/ good luck!