Jump to content

XPath evaluation of ENUMERATION parameters


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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...