I’m trying to poke this Xpath query and I’m getting an error saying: prefix ‘xsi’ not defined.

Has anyone had trouble with this?

 

//*[namespace::*]/@xsi:noNamespaceSchemaLocation

 

-----------------

BUILD FAILED

 

D:\PolicyServices\BuildFiles\PolicyServices.build(412,4):

Failed to select nodes with XPath _expression_ '//*[namespace::*][Command]/@xsi:noNamespaceSchemaLocation'.

    Prefix 'xsi' is not defined.

 

Total time: 21.7 seconds.

----------

Sample input .xml

<?xml version="1.0" encoding="utf-8" ?>

- <Commands xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Value that needs pokin">

…………..

 

Reply via email to