Jump to content

XPath evaluation of ENUMERATION parameters


MariusG
 Share

Recommended Posts

Hello,

I am having the following situation:

In a XML file, there is a parameter of ENUMERATION type (let's call it Time {AM, PM}).

In an XPath expression, I need to evaluate the value of this parameter (as in Time != 'AM').

If the provider of the parameter Seasons decides to change the enum to {24H}, does my evaluation Time != 'AM' have any chance to return false?

The only explanation for this would be that XPath does not check for the string itself, but for its value as a member of an enumeration (AM is expected to be 0 and 24H is indeed 0).

Does anyone know how XPath makes these kind of evaluations, that involve enumerations?

Thank you!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...