<repository xmlns="http://laserfiche.com/namespaces/cr/" version="1.1" app="admin.10.2"> <props xmlns="http://laserfiche.com/namespaces/cr/" version="1.1" app="admin.10.2" onconflict="CO"> <pset id="106" name="HR-CHI - HR Memo" description="" color="" /> <pset id="107" name="HR-Chronology" description="" color="" /> <pset id="108" name="HR-Clearance Form" description="" color="" /> </props> </repository>
Referencing the XML snippet, I am trying to find the elements with name attributes that contain "HR-" using the workflow layout in the image.
I ran the workflow and both the Find and Retrieve activities work. It is the Read XML that is having issues.
The XML Source for the Read XML activity is:
%(RetrieveDocumentText_Text)
The XPATH expression that I am using is:
repository/props/pset[contains(@name,'HR-')]/@name
I am using sites like https://www.freeformatter.com/xpath-tester.html to verify that both XML document and XPATH expression are valid.
When I use the tester inside the expression editor token, the result is blank.
The XPATH documentation on https://www.laserfiche.com/support/webhelp/Laserfiche/10/en-US/administration/#../Subsystems/LFWorkflow/Content/Resources/Activities/ReadXML.htm%3FTocPath%3DWorkflow%7CWorkflow%2520Designer%7CBuilding%2520Workflows%2520and%2520Business%2520Processes%7CActivities%7CH-R%7C_____13 states that Workflow only supports XPATH 1.0. I checked and confirmed to the best of my ability that the expression that I made is in XPATH 1.0.
I am stuck.
Any ideas to get the activity to actually function?