I have to create a XML namespace which contains a URL. As result i get the INVALID_CHARACTER for XML error. So i tried to put the URL in a string first - same result. When i try to put the URL in a URL variable and try to add it after the elementtext:
Element rootElement = doc.createElement("esb"+ url);
it wont work because its not a string.
The url is like: xmlns:tns="http://www.xxxxxxx-xxxxxxxxxx.xx/xxx-xxx-xxxx"
I also tried to replace the "
with "
...
Does someone here has an idea how i can use the URL as Namespace?
Edit:/ I figured out that the / characters are causing the problem - but the internet says - / is a valid character... so is java causing the problem here? (I use eclipse for coding)