Extended Schema ValidationThe graphical XML Schema editor in XMLSpy® 2012 lets you validate naming and coding conventions that are beyond the scope of the XML Schema standard. This gives you with more control over your XML architecture by allowing you to further constrain the way that elements and attributes are created and defined.
Managing & Defining XML Rule SetsRule sets are managed through the Schema tab in the Info entry helper window, where you can create a new rule set, browse to locate a rule set, or choose from a set of predefined rule sets that ship with XMLSpy.
You can add as many rule sets as needed to an XML Schema, and easily manage them using a context menu for editing, adding, or deleting assignments. Editing or creating a new rule set brings up the Schema Rules Editor. This dialog has two panes:
You can define rule sets based on naming conventions and/or coding conventions that extend beyond the scope of the XML Schema standard. Naming ConventionsNaming conventions refer to the guidelines for what element/attribute tags are called (i.e. <element>). XML Schema already provides a number of built-in naming allowances and constraints, for example, names cannot start with a numbers, punctuation, or "xml". This feature lets schema developers validate additional rule definitions. For example, the screenshot below highlights a rule that requires all attribute names to begin with a lower case letter.
Coding ConventionsCoding conventions refer to more complex rules for the way in which the schema is written and let developers narrow the scope of the XML Schema recommendation to align with internal best practices. For example, the screenshot below shows a rule that restricts the use of xsd:any, which can be used to extend an XML Schema with elements that are not explicitly specified in the schema.
Discover the power of XMLSpy for building and managing your XML infrastructure - Download a free 30-day trial of XMLSpy. |
| |||||||||||||||||||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
