Showing posts with label namespace. Show all posts
Showing posts with label namespace. Show all posts
Thursday, January 19, 2012
rename namespace
a small note to myself on how to change namespace of a xml element in OSB
input is
<ciao/>
output is
<lap:ciao xmlns:lap="http://www.laperrasucia.com"/>
Labels:
namespace
Friday, March 18, 2011
JAXB, retrieving the Namespace of an element
I hate hardcoding namespaces in my code, so here is how to retrieve it from the JAXB annotated beans:
ObjectFactory oj = new ObjectFactory();
String NAMESPACE = oj.createMyObject(oj.createMyObject()).getName().getNamespaceURI();
ObjectFactory oj = new ObjectFactory();
String NAMESPACE = oj.createMyObject(oj.createMyObject()).getName().getNamespaceURI();
Subscribe to:
Posts (Atom)