Jigar Parikh - 2006-03-21

Logged In: YES

Extenstion element is created by calling toXML() by
EPPXMLBase on your Extension Implementation class.

Since it creates new Document completely it does not have
any namespace so you probably should add namespace to your
extension element.
You could have method like setCommonAttributes(Element
element) which takes the extension element and sets the
attribute like below or whatever you need.

element.setAttribute("xmlns", "urn:ietf:params:xml:ns:epp-
element.setAttribute"xmlns:xsi", "http://www.w3.org/2001/XML
element.setAttribute"xsi:schemaLocation", "urn:ietf:params:x
ml:ns:epp-1.0 epp-1.0.xsd");

Once you do this, add other elements to your extension
element. Now when createXMLFromDoc(document) in your
extension implementation class gets called, you already
have namespace so no error will be returned and you will
get the extension XML string.

Hope this helps,