Saturday, 28 April 2007

OMElement

After playing around for hours trying to figure out how to get rid of the namespace on the element. eg.

Most examples have you creating an element like this:

OMElement method = factory.createOMElement("method", nameSpace);


After many hours, of not looking through the documentation, I found that if you do this.

OMElement method = factory.createOMElement("method", null);


You will get <method> instead of <x:method>

No comments: