jQuery in Action, 3rd edition
The moose likes XML and Related Technologies and the fly likes Process XML response with servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Process XML response with servlet" Watch "Process XML response with servlet" New topic

Process XML response with servlet


Joined: Sep 24, 2004
Posts: 1
I've problem to process XML response from the server with servlet.

Example for the XML response as below:-


how i can get this response using servlet? have some body can help me, please.
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
I've got two questions for you:

1) Could you please change your display name into something compliant with the naming policy (a real, two-part name required).

2) Could you elaborate on what you mean by "processing server response in a servlet"? Is your servlet making an HTTP request to another server? If so, with which API you're making the HTTP request?

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Are you perhaps asking about how to use data in XML format with Java?

If so, I think you could very easily turn your example XML into a Java object using XStream.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link: http://aspose.com/file-tools
subject: Process XML response with servlet
jQuery in Action, 3rd edition