XML schema; multiple from a list of valid attribute values
问题 I'm reasonably new to working with XML schemas, so excuse my incompetence if this is more trivial than I myself believe it must be. I'm trying to create a required attribute that must contain 1 or more white-space-separated string values from a list. The list is the 4 typical HTTP request methods; get , post , put , and delete . So valid elements would include: <rule methods="get" /> <rule methods="get post" /> <rule methods="post put delete" /> Whereas invalid elements would include: <rule