Jump to content

Remove namespace from XML


Vipul Shah 2

Recommended Posts

Hi The solution to your problem is attached as BE project.

Well the synopsis is

String functionVal = XPath.execute("$var//ns0:Message/ns0:Payload/ns1:GetMeterReadings/ns1:MeterReadings[1]/ns1:Meter/ns1:Names[ns1:NameType/ns1:name=functionalValue]/ns1:name/text()",meterRead@payload,"ns0=

Link to comment
Share on other sites

You can use XPath for parsing. However note, it has a performance overhead, when either many XPath executions are called or a huge XML is to be parsed. So use it wisely, one example, would be to break it into small parts in a pre-processor and convert them to events and pass them for further processing.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...