1 /*************************************************************************** 2 $RCSfile$ 3 ------------------- 4 cvs : $Id$ 5 begin : Sat Jun 28 2003 6 copyright : (C) 2003 by Martin Preuss 7 email : martin@libchipcard.de 8 9 *************************************************************************** 10 * * 11 * This library is free software; you can redistribute it and/or * 12 * modify it under the terms of the GNU Lesser General Public * 13 * License as published by the Free Software Foundation; either * 14 * version 2.1 of the License, or (at your option) any later version. * 15 * * 16 * This library is distributed in the hope that it will be useful, * 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 19 * Lesser General Public License for more details. * 20 * * 21 * You should have received a copy of the GNU Lesser General Public * 22 * License along with this library; if not, write to the Free Software * 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * 24 * MA 02111-1307 USA * 25 * * 26 ***************************************************************************/ 27 28 #ifndef GWENHYWFAR_XML_L_H 29 #define GWENHYWFAR_XML_L_H 30 31 #include <gwenhywfar/xml.h> 32 #include <gwenhywfar/stringlist2.h> 33 34 35 /** The type of a property of a tag (in XML notation this would be 36 called the attribute of an element). */ 37 typedef struct GWEN__XMLPROPERTY GWEN_XMLPROPERTY; 38 39 40 GWEN_XMLPROPERTY *GWEN_XMLNode_GetFirstProperty(const GWEN_XMLNODE *n); 41 GWEN_XMLPROPERTY *GWEN_XMLNode_GetNextProperty(const GWEN_XMLNODE *n, 42 const GWEN_XMLPROPERTY *pr); 43 44 const char *GWEN_XMLProperty_GetName(const GWEN_XMLPROPERTY *pr); 45 const char *GWEN_XMLProperty_GetValue(const GWEN_XMLPROPERTY *pr); 46 47 48 int GWEN_XML_AddNameSpace(GWEN_STRINGLIST2 *sl, 49 const char *prefix, 50 const char *name); 51 const char *GWEN_XML_FindNameSpaceByPrefix(GWEN_STRINGLIST2 *sl, 52 const char *s); 53 const char *GWEN_XML_FindNameSpaceByName(GWEN_STRINGLIST2 *sl, 54 const char *s); 55 const char *GWEN_XML_FindNameSpace(GWEN_STRINGLIST2 *sl, 56 const char *prefix, 57 const char *name); 58 59 60 #endif 61 62