1a45ae5f8SJohn Marino /* Shared helper routines for manipulating XML. 2a45ae5f8SJohn Marino 3*ef5ccd6cSJohn Marino Copyright (C) 2006-2013 Free Software Foundation, Inc. 4a45ae5f8SJohn Marino 5a45ae5f8SJohn Marino This file is part of GDB. 6a45ae5f8SJohn Marino 7a45ae5f8SJohn Marino This program is free software; you can redistribute it and/or modify 8a45ae5f8SJohn Marino it under the terms of the GNU General Public License as published by 9a45ae5f8SJohn Marino the Free Software Foundation; either version 3 of the License, or 10a45ae5f8SJohn Marino (at your option) any later version. 11a45ae5f8SJohn Marino 12a45ae5f8SJohn Marino This program is distributed in the hope that it will be useful, 13a45ae5f8SJohn Marino but WITHOUT ANY WARRANTY; without even the implied warranty of 14a45ae5f8SJohn Marino MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15a45ae5f8SJohn Marino GNU General Public License for more details. 16a45ae5f8SJohn Marino 17a45ae5f8SJohn Marino You should have received a copy of the GNU General Public License 18a45ae5f8SJohn Marino along with this program. If not, see <http://www.gnu.org/licenses/>. */ 19a45ae5f8SJohn Marino 20a45ae5f8SJohn Marino #ifndef XML_UTILS_H 21a45ae5f8SJohn Marino #define XML_UTILS_H 22a45ae5f8SJohn Marino 23a45ae5f8SJohn Marino /* Return a malloc allocated string with special characters from TEXT 24a45ae5f8SJohn Marino replaced by entity references. */ 25a45ae5f8SJohn Marino 26a45ae5f8SJohn Marino extern char *xml_escape_text (const char *text); 27a45ae5f8SJohn Marino 28a45ae5f8SJohn Marino #endif 29