1562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project/*
2562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Projectwww.sourceforge.net/projects/tinyxml
30238a20410cdb339709c983dede5fc43c0a3bdc4Dan AlbertOriginal code (2.0 and earlier )copyright (c) 2000-2002 Lee Thomason (www.grinninglizard.com)
4562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project
5562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source ProjectThis software is provided 'as-is', without any express or implied
6562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Projectwarranty. In no event will the authors be held liable for any
7562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Projectdamages arising from the use of this software.
8562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project
9562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source ProjectPermission is granted to anyone to use this software for any
10562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Projectpurpose, including commercial applications, and to alter it and
11562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Projectredistribute it freely, subject to the following restrictions:
12562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project
13562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project1. The origin of this software must not be misrepresented; you must
14562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Projectnot claim that you wrote the original software. If you use this
15562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Projectsoftware in a product, an acknowledgment in the product documentation
16562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Projectwould be appreciated but is not required.
17562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project
18562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project2. Altered source versions must be plainly marked as such, and
19562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Projectmust not be misrepresented as being the original software.
20562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project
21562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project3. This notice may not be removed or altered from any source
22562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Projectdistribution.
23562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project*/
24562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project
25562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project#include "tinyxml.h"
26562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project
27562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project// The goal of the seperate error file is to make the first
28562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project// step towards localization. tinyxml (currently) only supports
29562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project// english error messages, but the could now be translated.
30562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project//
31562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project// It also cleans up the code a bit.
32562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project//
33562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project
340238a20410cdb339709c983dede5fc43c0a3bdc4Dan Albertconst char* TiXmlBase::errorString[ TIXML_ERROR_STRING_COUNT ] =
35562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project{
36562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project	"No error",
37562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project	"Error",
38562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project	"Failed to open file",
390238a20410cdb339709c983dede5fc43c0a3bdc4Dan Albert	"Memory allocation failed.",
40562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project	"Error parsing Element.",
41562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project	"Failed to read Element name",
42562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project	"Error reading Element value.",
43562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project	"Error reading Attributes.",
44562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project	"Error: empty tag.",
45562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project	"Error reading end tag.",
46562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project	"Error parsing Unknown.",
47562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project	"Error parsing Comment.",
48562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project	"Error parsing Declaration.",
49562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project	"Error document empty.",
50562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project	"Error null (0) or unexpected EOF found in input stream.",
51562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project	"Error parsing CDATA.",
52562be06492c3ac43adf153f550abaede6bc18a44The Android Open Source Project};
53