TinyXml is a compact library that implements XML Parsing and Manipulation.

Dependents:   tinyxml_test

Committer:
wvd_vegt
Date:
Mon Apr 18 18:54:09 2011 +0000
Revision:
0:3c1d63c20cfc
First Version

Who changed what in which revision?

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