="justify"> # include
# ifdef __ MWERKS__
# define FL_DLL
# endif
# include
# include
# include
# include
# include
# include
# include
# include
# include
# include
# include
# include
# include
# include
# include
# include namespace std; changed = 0; filename [FL_PATH_MAX] = ""; title [FL_PATH_MAX]; _Text_Buffer * textbuf = 0;
// Syntax highlighting stuff.
# define TS 14// default editor textsize_Text_Buffer * stylebuf = 0; _Text_Display :: Style_Table_Entry styletable [7];// Style table :: vector code_keywords; :: vector code_types; :: vector :: iterator it; :: vector :: iterator it1; * uri; * color; * font; i ( 0); _Text_Display :: Style_Table_Entry stylebuftemp; is_valid (const xmlDocPtr doc, const char * schema_filename)
{schema_doc = xmlReadFile (schema_filename, NULL, XML_PARSE_NONET); (schema_doc == NULL) {_alert ("The schema cannot be loaded or is not well-formed"); - 1; p>
} parser_ctxt = xmlSchemaNewDocParserCtxt (schema_doc); (parser_ctxt == NULL) {_alert ("Unable to create a parser context for the schema", "Ok"); (schema_doc); - 2 ;
} schema = xmlSchemaParse (parser_ctxt); (schema == NULL) {_alert ("the schema itself is not valid", "Ok"); (parser_ctxt); (schema_doc); - 3;
} valid_ctxt = xmlSchemaNewValidCtxt (schema); (valid_ctxt == NULL) {_alert ("unable to create a validation context for the schema", "Ok"); (schema); (parser_ctxt ); (schema_doc); - 4;
} is_valid = (xmlSchemaValidateDoc (valid_ctxt, doc) == 0); (valid_ctxt); (schema); (parser_ctxt); (schema_doc); is_valid? 1: 0;
} int XMLValue2FLColor (const xmlChar * XMLvalue)
{((! xmlStrcmp (XMLvalue, (const xmlChar *) "FL_BLACK")))
{FL_BLACK;
} ((! xmlStrcmp (XMLvalue, (const xmlChar *) "FL_GREEN")))
{FL_GREEN;
} ((! xmlStrcmp (XMLvalue, (const xmlChar *) "FL_DARK_GREEN")))