Alexander Steiger / tinyxml
Committer:
steiger
Date:
Sun Nov 21 00:49:17 2010 +0000
Revision:
0:7c97dcef700c

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
steiger 0:7c97dcef700c 1 /*
steiger 0:7c97dcef700c 2 www.sourceforge.net/projects/tinyxml
steiger 0:7c97dcef700c 3 Original code (2.0 and earlier )copyright (c) 2000-2006 Lee Thomason (www.grinninglizard.com)
steiger 0:7c97dcef700c 4
steiger 0:7c97dcef700c 5 This software is provided 'as-is', without any express or implied
steiger 0:7c97dcef700c 6 warranty. In no event will the authors be held liable for any
steiger 0:7c97dcef700c 7 damages arising from the use of this software.
steiger 0:7c97dcef700c 8
steiger 0:7c97dcef700c 9 Permission is granted to anyone to use this software for any
steiger 0:7c97dcef700c 10 purpose, including commercial applications, and to alter it and
steiger 0:7c97dcef700c 11 redistribute it freely, subject to the following restrictions:
steiger 0:7c97dcef700c 12
steiger 0:7c97dcef700c 13 1. The origin of this software must not be misrepresented; you must
steiger 0:7c97dcef700c 14 not claim that you wrote the original software. If you use this
steiger 0:7c97dcef700c 15 software in a product, an acknowledgment in the product documentation
steiger 0:7c97dcef700c 16 would be appreciated but is not required.
steiger 0:7c97dcef700c 17
steiger 0:7c97dcef700c 18 2. Altered source versions must be plainly marked as such, and
steiger 0:7c97dcef700c 19 must not be misrepresented as being the original software.
steiger 0:7c97dcef700c 20
steiger 0:7c97dcef700c 21 3. This notice may not be removed or altered from any source
steiger 0:7c97dcef700c 22 distribution.
steiger 0:7c97dcef700c 23 */
steiger 0:7c97dcef700c 24
steiger 0:7c97dcef700c 25 #include "tinyxml.h"
steiger 0:7c97dcef700c 26
steiger 0:7c97dcef700c 27 // The goal of the seperate error file is to make the first
steiger 0:7c97dcef700c 28 // step towards localization. tinyxml (currently) only supports
steiger 0:7c97dcef700c 29 // english error messages, but the could now be translated.
steiger 0:7c97dcef700c 30 //
steiger 0:7c97dcef700c 31 // It also cleans up the code a bit.
steiger 0:7c97dcef700c 32 //
steiger 0:7c97dcef700c 33
steiger 0:7c97dcef700c 34 const char* TiXmlBase::errorString[ TIXML_ERROR_STRING_COUNT ] =
steiger 0:7c97dcef700c 35 {
steiger 0:7c97dcef700c 36 "No error",
steiger 0:7c97dcef700c 37 "Error",
steiger 0:7c97dcef700c 38 "Failed to open file",
steiger 0:7c97dcef700c 39 "Error parsing Element.",
steiger 0:7c97dcef700c 40 "Failed to read Element name",
steiger 0:7c97dcef700c 41 "Error reading Element value.",
steiger 0:7c97dcef700c 42 "Error reading Attributes.",
steiger 0:7c97dcef700c 43 "Error: empty tag.",
steiger 0:7c97dcef700c 44 "Error reading end tag.",
steiger 0:7c97dcef700c 45 "Error parsing Unknown.",
steiger 0:7c97dcef700c 46 "Error parsing Comment.",
steiger 0:7c97dcef700c 47 "Error parsing Declaration.",
steiger 0:7c97dcef700c 48 "Error document empty.",
steiger 0:7c97dcef700c 49 "Error null (0) or unexpected EOF found in input stream.",
steiger 0:7c97dcef700c 50 "Error parsing CDATA.",
steiger 0:7c97dcef700c 51 "Error when TiXmlDocument added to document, because TiXmlDocument can only be at the root.",
steiger 0:7c97dcef700c 52 };