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.