• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Using XML

To satisfy the first requirement, the Zope development team decided to use an XML-based language (as the name ZCML suggests). The advantage of XML is that it is a “standard format,” which increases the likelihood that people will be able to read it right away. Furthermore, you can use standard Python modules to parse the format, and XML namespaces help you to group the configuration by functionality.

A single configuration step is called a directive. Each directive is an XML tag, and therefore the tags are grouped by namespaces. Directives come in two flavors: simple and complex. Complex directives can contain other subdirectives. They are usually used to provide a set of common properties but do not generate an action immediately.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint