void CheckWellFormed(const wxExFileName& fn) { if (fn.GetLexer().GetLanguage() == "xml") { if (!wxXmlDocument(fn.GetFullPath()).IsOk()) { wxLogStatus("not a valid XML document"); } } }
bool wxExFrame::OpenFile( const wxExFileName& filename, const wxExVCSEntry& vcs, long flags) { wxExSTC* stc = GetSTC(); if (stc != NULL) { stc->SetText(vcs.GetOutput()); wxExVCSCommandOnSTC( vcs.GetCommand(), filename.GetLexer(), stc); } else { wxLogMessage(vcs.GetOutput()); } return true; }