Xquery to handle default namespace
1234
25
0
Success
xquery to get the value of ErrorCode and ErrorMessage from above xml.
The Response element has name space as http://abc.xyz.com/test/schemas and it doesn’t have prefixed so all the elements under Response element prefix with some default namespace. To cover up this write xquery as
data($body/*:Response/*:DetailResponse/*:Error/*:ErrorCode)
data($body/*:Response/*:DetailResponse/*:Error/*:ErrorMessage)
xquery to get the value of ErrorCode and ErrorMessage from above xml.
The Response element has name space as http://abc.xyz.com/test/schemas and it doesn’t have prefixed so all the elements under Response element prefix with some default namespace. To cover up this write xquery as
data($body/*:Response/*:DetailResponse/*:Error/*:ErrorCode)
data($body/*:Response/*:DetailResponse/*:Error/*:ErrorMessage)
No comments:
Post a Comment