Game Development Reference
In-Depth Information
The error message that will be found in the status bar at the bottom is that
the “namespace:base” attribute is not declared.
XML Notepad source code is available at http://xmlnotepad.codeplex.com and
can be downloaded using anonymous login with an SVN client such as
tortoiseSVN [Collabnet 01]. The project settings are for Visual Studio 2005, so
the solution file xmlnotepad/xmlnotepad.sln will be automatically converted if
opened with a more recent version. The only issue I had recompiling was that I
had to disable all the signing options for all the subprojects; otherwise the applica-
tion refuses to launch, as it cannot find the proper XML Notepad component.
Then the XML Notepad can be hacked to force the loading of the missing
schema by adding one line in the Checker.cs, in ValideContext(), just before the
call to Load Schemas() :
foreach (XmlSchema s in doc.Schemas.Schemas()) {
sc.Add(s);
}
// hack for collada schema
set . Add ( " http: // www . w3 . org / XML /1998/ namespace " ,
" http: // www . w3 . org /2001/ xml . xsd " );
if (LoadSchemas(doc, set, resolver)) {
set.ValidationEventHandler += handler;
set.Compile();
}
Figure 9.10. XML Notepad modified to use COLLADA schema.
 
Search WWH ::




Custom Search