Forum Discussion
dkarr
15 years agoContributor
Looks like a namespace problem. Does this Groovy interface provide a way to register prefix/namespace mappings? If so, register a non-empty prefix associated with the "http://website.com/interfaces" namespace and use that prefix in the xpath query. Otherwise, change the query to use "local-name()" references, like this:
//*[local-name()='ServiceProviderEnrolmentReference']
You'll see how gross this gets once your xpath query gets even a little longer than this. If there's a way to register prefix/namespace mappings, do it.
//*[local-name()='ServiceProviderEnrolmentReference']
You'll see how gross this gets once your xpath query gets even a little longer than this. If there's a way to register prefix/namespace mappings, do it.