Introducing the all-new TIBCO Community site!

For current users, please click "Sign In" to reset your password and access the enhanced features. If you're a first-time visitor, we extend a warm welcome—click "Sign Up" to become a part of the TIBCO Community!

If you're seeking alternative community sites, explore ibi, Jaspersoft, and Spotfire.

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 New...