I have the following as the root element of an xml - \[code\]<ns:MainRequest xmlns:ns2="http://www.somewebsite.com/Schema/1/MainRequest" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:gen="http://www.polaris-uk.co.uk/GenericSchema/1_1/GenericTypes" xsi:schemaLocation="http://www.somewebsite.com/Schema/1/MainRequest C:\Dir1\Dir2\SchemaMessageMainRequest.xsd">\[/code\]What I want is just this \[code\]<MainRequest>\[/code\].
How can I get rid of all other information in this root element?
I am using \[code\]JDOM\[/code\] and tried various ways to clean this root element. I tried with Element's \[code\]setNamespace(Namespace.NO_NAMESPACE)\[/code\], \[code\]removeNamepaceDeclaration()\[/code\] etc. but with no success
How can I get rid of all other information in this root element?
I am using \[code\]JDOM\[/code\] and tried various ways to clean this root element. I tried with Element's \[code\]setNamespace(Namespace.NO_NAMESPACE)\[/code\], \[code\]removeNamepaceDeclaration()\[/code\] etc. but with no success