James,

XPath is namespace-specific. I.e., /root is not the same as 
/{urn:exo:/root}root or whatever syntax is appropriate (i haven’t used XPath in 
about a decade so i can’t remember the syntax off the top of my head).
But you should be able to use * to wildcard the namespace, I believe. So 
something like /*:root/*:set/*:rep/*:repId should work…. you may need /text() 
at the end?

> On Jun 17, 2022, at 10:18 AM, James McMahon <[email protected]> wrote:
> 
> I'm having a problem parsing values out of xml. In this example, I need to 
> get repId from this structure:
> 
> <root:meeting xmlns:root="urn:exo:/root">
>   <set:set xmlns:set="....">
>           <repset:repSet xmlns:repset="....">
>           <repset:rep>
>                <repset:repId>12345</repset:repId>
> 
> In my EvaluateXPath I try to do this:
> Property:    myId
> Value:        /meeting/set/repSet/rep/repId
> 
> I try doing this to set an attribute named myId, but get back an empty value. 
> What do I need to change to get 12345 for myId?

Reply via email to