15bb6a25fSPoul-Henning Kamp /* 2*0a48773fSEric van Gyzen __ __ _ 3*0a48773fSEric van Gyzen ___\ \/ /_ __ __ _| |_ 4*0a48773fSEric van Gyzen / _ \\ /| '_ \ / _` | __| 5*0a48773fSEric van Gyzen | __// \| |_) | (_| | |_ 6*0a48773fSEric van Gyzen \___/_/\_\ .__/ \__,_|\__| 7*0a48773fSEric van Gyzen |_| XML parser 8*0a48773fSEric van Gyzen 9*0a48773fSEric van Gyzen Copyright (c) 1997-2000 Thai Open Source Software Center Ltd 10*0a48773fSEric van Gyzen Copyright (c) 2000-2017 Expat development team 11*0a48773fSEric van Gyzen Licensed under the MIT license: 12*0a48773fSEric van Gyzen 13*0a48773fSEric van Gyzen Permission is hereby granted, free of charge, to any person obtaining 14*0a48773fSEric van Gyzen a copy of this software and associated documentation files (the 15*0a48773fSEric van Gyzen "Software"), to deal in the Software without restriction, including 16*0a48773fSEric van Gyzen without limitation the rights to use, copy, modify, merge, publish, 17*0a48773fSEric van Gyzen distribute, sublicense, and/or sell copies of the Software, and to permit 18*0a48773fSEric van Gyzen persons to whom the Software is furnished to do so, subject to the 19*0a48773fSEric van Gyzen following conditions: 20*0a48773fSEric van Gyzen 21*0a48773fSEric van Gyzen The above copyright notice and this permission notice shall be included 22*0a48773fSEric van Gyzen in all copies or substantial portions of the Software. 23*0a48773fSEric van Gyzen 24*0a48773fSEric van Gyzen THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 25*0a48773fSEric van Gyzen EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 26*0a48773fSEric van Gyzen MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN 27*0a48773fSEric van Gyzen NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 28*0a48773fSEric van Gyzen DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 29*0a48773fSEric van Gyzen OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 30*0a48773fSEric van Gyzen USE OR OTHER DEALINGS IN THE SOFTWARE. 315bb6a25fSPoul-Henning Kamp */ 325bb6a25fSPoul-Henning Kamp 335bb6a25fSPoul-Henning Kamp enum { 345bb6a25fSPoul-Henning Kamp BT_NONXML, 355bb6a25fSPoul-Henning Kamp BT_MALFORM, 365bb6a25fSPoul-Henning Kamp BT_LT, 375bb6a25fSPoul-Henning Kamp BT_AMP, 385bb6a25fSPoul-Henning Kamp BT_RSQB, 395bb6a25fSPoul-Henning Kamp BT_LEAD2, 405bb6a25fSPoul-Henning Kamp BT_LEAD3, 415bb6a25fSPoul-Henning Kamp BT_LEAD4, 425bb6a25fSPoul-Henning Kamp BT_TRAIL, 435bb6a25fSPoul-Henning Kamp BT_CR, 445bb6a25fSPoul-Henning Kamp BT_LF, 455bb6a25fSPoul-Henning Kamp BT_GT, 465bb6a25fSPoul-Henning Kamp BT_QUOT, 475bb6a25fSPoul-Henning Kamp BT_APOS, 485bb6a25fSPoul-Henning Kamp BT_EQUALS, 495bb6a25fSPoul-Henning Kamp BT_QUEST, 505bb6a25fSPoul-Henning Kamp BT_EXCL, 515bb6a25fSPoul-Henning Kamp BT_SOL, 525bb6a25fSPoul-Henning Kamp BT_SEMI, 535bb6a25fSPoul-Henning Kamp BT_NUM, 545bb6a25fSPoul-Henning Kamp BT_LSQB, 555bb6a25fSPoul-Henning Kamp BT_S, 565bb6a25fSPoul-Henning Kamp BT_NMSTRT, 575bb6a25fSPoul-Henning Kamp BT_COLON, 585bb6a25fSPoul-Henning Kamp BT_HEX, 595bb6a25fSPoul-Henning Kamp BT_DIGIT, 605bb6a25fSPoul-Henning Kamp BT_NAME, 615bb6a25fSPoul-Henning Kamp BT_MINUS, 625bb6a25fSPoul-Henning Kamp BT_OTHER, /* known not to be a name or name start character */ 635bb6a25fSPoul-Henning Kamp BT_NONASCII, /* might be a name or name start character */ 645bb6a25fSPoul-Henning Kamp BT_PERCNT, 655bb6a25fSPoul-Henning Kamp BT_LPAR, 665bb6a25fSPoul-Henning Kamp BT_RPAR, 675bb6a25fSPoul-Henning Kamp BT_AST, 685bb6a25fSPoul-Henning Kamp BT_PLUS, 695bb6a25fSPoul-Henning Kamp BT_COMMA, 705bb6a25fSPoul-Henning Kamp BT_VERBAR 715bb6a25fSPoul-Henning Kamp }; 725bb6a25fSPoul-Henning Kamp 735bb6a25fSPoul-Henning Kamp #include <stddef.h> 74