Creating an XML String with namespace in Java.Please see
I am creating an XML String with the
private String sTradeSizeXML ="<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
"<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">" +" " +
"xmlns:i=\"http://www.abc.com/common/interests:i\">" +
"<Note>" +
"<i:Level>100000</i:Level>"+
"<i:Size>20000</i:Size>"+
"</Note>"+
"</xsl:stylesheet>";
On execution,it gives me the error:
Fatal Error] :1:183: The prefix"i"for element"i:Level" is not bound.
org.xml.sax.SAXParseException: The prefix"i"for element"i:Level" is not bound.
But I am binding this to i: in the above string ?
So why is it still giving that error?

