Why not an XML schema language? Schema languages describe syntax of a document YANG models the semantics of a database Constraints on the finished product Commit time Operations guided by the model Semantics drive the syntax Simple XML validation is not sufficient Example: Mandatory fields must appear in all instances But don't appear in every RPC (“delete”) |