Browse Source

- TAML schema (dynamic fields are now supported).

MelvMay-GG 12 years ago
parent
commit
039297032e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      engine/source/persistence/taml/taml.cc

+ 5 - 0
engine/source/persistence/taml/taml.cc

@@ -992,6 +992,11 @@ bool Taml::generateTamlSchema( const char* pFilename )
             pAttributeElement->SetAttribute( "use", "optional" );
             pComplexTypeElement->LinkEndChild( pAttributeElement );
         }
+
+        // Add "any" attribute element (dynamic fields).
+        TiXmlElement* pAnyAttributeElement = new TiXmlElement( "xs:anyAttribute" );
+        pAnyAttributeElement->SetAttribute( "processContents", "skip" );
+        pComplexTypeElement->LinkEndChild( pAnyAttributeElement );
     }
 
     // Expand the file-name into the file-path buffer.