Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Workbench
Viewing all articles
Browse latest Browse all 69588

How to read a CDATA node with XPath?

$
0
0

I'm using Workbench ES2 (9.0) to build a process and am trying to use xpath to read a CDATA node from an XML variable.

But when I do, I get a different value than when I read a text node without CDATA.  How can I read this data?  Any node in the document could have CDATA in it.

 

 

xml document

<properties>

  <generation>

    <inputGenDocs>

      <inputGenDoc><![CDATA[\\myserver.com\input\200100647\IFI_Attachments2_V2_Outlier & Historical Data IFI #575.TIF]]></inputGenDoc>

    </inputGenDocs>

  </generation>

</properties>

 

xpath

/process_data/xmlProperties/properties/generation/inputGenDocs/inputGenDoc[

 

number(/process_data/@numDocIdx

)]

 

actual result

<?xml version="1.0" encoding="UTF-8"?>
<inputGenDoc><![CDATA[\\myserver.com\input\200100647\IFI_Attachments2_V2_Outlier & Historical Data IFI #575.TIF]]></inputGenDoc>

 

expected result (if not wrapped in CDATA this is the returned value)

\\myserver.com\input\200100647\IFI_Attachments2_V2_Outlier & Historical Data IFI #575.TIF

 

thanks.


Viewing all articles
Browse latest Browse all 69588

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>