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