I am building Magento 1 XSDs (XML Schema Definitions). Magento very often uses node names as a unique identifier for a node in XML.

For example:


I know the structure of each node within the "events" node should have an "observers" which should contain observer definitions. And I know that an observer definition should have the structure of always containing one "class" node and one "method" node.

How do I specify this in an XSD? I have not been able to figure out how to specify structure for varied named nodes.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.