
102 II Buildable Tools
static void Main( string [] args )
{
if (args.GetLength(0) == 0)
{
Console . WriteLine("Usage XmlValidate document . dae");
return ;
}
XmlReaderSettings settings = new XmlReaderSettings();
settings . ConformanceLevel = ConformanceLevel.Document ;
settings . ValidationType = ValidationType.Schema ;
settings . Schemas .Add(
"http ://www.w3. org/XML /1998/ namespace",
"http ://www.w3. org/2001/ xml. xsd");
settings . Schemas .Add(
"http ://www. collada .org /2005/11/COLLADASchema",
"http ://www. khronos .org/ files /collada_schema_1_4");
settings . IgnoreWhitespace = true ;
settings . IgnoreComments = true ;
try
{
XmlReader reader = XmlReader. ...