File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Unable to parse xml response Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Unable to parse xml response" Watch "Unable to parse xml response" New topic
Author

Unable to parse xml response

jas preet
Ranch Hand

Joined: Mar 31, 2010
Posts: 76

I have a large xml response that i need to parse but i am unable to it.



The one marked as bold is where i get the compile time error.
Unable to resolve please help.

Note : The same response when i paste in a XML file and try to parse it. It is done successfully.
But i need to parse the response that i get from the url.
The response is a xml string that i am trying to parse now.


Thanks Jaspreet ----- Nothing is permanent
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 3032
    
    4

The code you posted is broken because you don't escape your quotes. For example, you have

That should be


But that is only a problem because you entered the string as a literal. If you are getting it from a URL this won't be a problem. To help you with your real problem we would need the real code and the real error message you get.


Steve
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to parse xml response
 
Similar Threads
SAXPARSER - Problem while parsing HTTPS Response XML
Multiple Actions issue in JSF
OJB findByTemplate Problem
Hibernate - multiple collection with restrictions mapping problem
Problems with Spring Security and JSF2