Vipul Shah 2 Posted February 13, 2015 Posted February 13, 2015 Remove namespace from XML. I want to remove additional namespace from my input xml hkd Now I want value of 'd tag . How to get it with XPath expression I dont want to use JAVA code. Has anybody tried Catalog function XPath.executeWithEvent() in BE
Dibakar Deb 3 Posted February 14, 2015 Posted February 14, 2015 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=
Vikram Patil Posted February 16, 2015 Posted February 16, 2015 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now