The typeMatch attribute has different functionality depending on which node the typeMatch attribute is used alongside. When used within the StructureMap node, the typeMatch is used by DOC xPress during document generation to match the Structure Map to a regular expression based on each of the root object types present within the solution layout. When present within Rule node, the typeMatch attribute is used to implicitly match all objects within the Structure Map to a regular expression based on the object's type. If both nameMatch and typeMatch are included within the Rule, then both nameMatch and typeMatch must match for the rule to be applied.
This structure map matches to all object types that fit the Regular Expression string "Microsoft\.SqlServer\.Management\.Smo\.Server" and creates an empty structure with no nodes as well as implicitly maps all templates to the template "GlobalDefault":
This rule will implicitly map all objects with an object name that matches the regular expression string "Credentials$" and an object type that matches the regular expression string "Smo\.CredentialsCollection$" to the template mapped to the key "SqlCredentialsCollection":
Associated Required Nodes
Associated Optional Nodes