AnsweredAssumed Answered

appyXPath with encoded xml

Question asked by tony.harrison on Jun 25, 2012
Latest reply on Jun 29, 2012 by Tom_Kouhsari
Hi,

Has anyone else had an issue using applyXPath with an xml message that has encoding specified?

for example, this works fine for a 'non-encoded' xml message:
Process.MsgRef = applyXPath(Process.OriginalMessage,"//DocumentReference[ReferenceType='ExternalServiceRequestNumber']/ReferenceValue/text()");
e.g.
<?xml version="1.0"?>
<ServiceRequest xmlns:core="rrn:org.xcbl:schemas/xcbl/v4_0/core/core.xsd">
  <Envelope>
But not for
<?xml version="1.0" encoding="UTF-8"?>
<ServiceRequest xmlns:core="rrn:org.xcbl:schemas/xcbl/v4_0/core/core.xsd">
  <Envelope>
Any ideas anyone?

Outcomes