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.
and i must form an XML Structure based on that query string's key and value. I have no idea how to do it. Please help me by letting me know the best procedure to convert the query string into XML format.
Assume that the xml can be like this.
If the keys (parameters) are not pre-defined, you can use getParameterNames() method of HttpServletRequest to get an java.util.Enumeration object which contains the names of the parameters (keys). For getting the values, just iterate among the parameters through the Enumeration object and use getParameter(String) method of HttpServletRequest to get the value for each key.