wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes XML in the URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML in the URL" Watch "XML in the URL" New topic

XML in the URL

Don boscoo

Joined: Sep 20, 2010
Posts: 28
Hi ,

i want to pass XML String to a class from URL:


xmlText is the XML String, I'm having the logs in the class am passing it to. I cant get the xml string but when i send the normal string, it works fine like


How do i pass XML string in the url. Please Help.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60794

All URL values need to be encoded. Once encoded, XML is just like any other encoded text.

Bear in mind there is a length limitation to URLs imposed by the browsers.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Paul Clapham

Joined: Oct 14, 2005
Posts: 18541

And when Bear says "encoded", that means "URL encoded". There's a URLEncoder class which will do that for you.
Don't get me started about those stupid light bulbs.
subject: XML in the URL
Similar Threads
Putting string in soap message
RegExp performance for returning contextual search results
Exception Connection reset
Easy mock class intantiation
Jetty: wt are the reasons for the doPost method to be called twice?