This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Suman Reddy wrote:thanks for reply but sorry to say
Suman, if you are referring to a reply here it would be polite to provide a link to it. Otherwise somebody who wanted to answer your question would have to spend (waste) some time searching for that reply.
i need to get the simple tag names(here it is name,price,aname,city) in to a list i have heard about SAX parser event driven it walks throgh the xml step by step when a new tag occurs it will parse etc....
but i am unable to get the only sampletag names into a Arraylist
i have heard about a method getElementBytagName()
i dont want to write a code for particular xml because later on i have to retrive same simple tags from another xml say employee.xml
please provide a generic code which will retrive the simple tag names and stores into a Arraylist
the real xml i want to store only simple elements into array list
we are testers ,we have general idea about list, sax ,,,sample java programs ,please dont put this post in low priority please provide a links or sample programs,
the reason we are collecting only the simple tag names is the same names will be column names in DB but not the complex tag names .
we need to verify the response what we got is weather from DB or NOt,,
Well, it seems like you're at the very beginning. So let me point you to a book online about Java and XML: Processing XML with Java. It's a little bit dated, but it should introduce you to the basics of XML in the Java world.