MUSASHI C source: mssXml.h


構造体、共用体、列挙体
struct mssXmlTag


0001: /** 
0002:  * # CHAPTER # 
0003:  * ============================================================================ 
0004:  * XML関連のヘッダーファイル 
0005:  * ============================================================================ 
0006:  */ 
0007:  
0008: #include <mssOutput.h
0009: #include <mssBase.h
0010: #include <libxml/parserInternals.h> 
0011:  
0012: #ifndef __MSSXML_H 
0013: #define __MSSXML_H 1 
0014:  
0015: /** 
0016:  * # STRUCT # 
0017:  * XMLタグの構造体 
0018:  */ 
0019: struct mssXmlTag { 
0020:   char *element;     /*要素名*/ 
0021:   char **attributes; /*属性名-属性値リスト*/ 
0022:   int  attCnt;       /*属性の数(偶数のはず)*/ 
0023: }; 
0024:  
0025: /** 
0026:  * # PROTOTYPE #  
0027:  */ 
0028: char * mssEncoding(char *str, iconv_t *icid); 
0029: char * mssNencoding(char *str, int len, iconv_t *icid); 
0030: struct mssXmlTag * mssInitXmlTag(char *element, iconv_t *icid); 
0031: struct mssXmlTag * mssInitXmlTagByOpt(char *str, iconv_t *icid); 
0032: void mssFreeXmlTag(struct mssXmlTag *xmlTag); 
0033: void mssAddXmlTagAttributeStr(struct mssXmlTag *xmlTag, char *name, char *value, iconv_t *icid); 
0034: void mssAddXmlTagAttributeInt(struct mssXmlTag *xmlTag, char *name, int value, iconv_t *icid); 
0035: void mssAddXmlTagAttributeDbl(struct mssXmlTag *xmlTag, char *name, double value, iconv_t *icid); 
0036: struct mssXmlTag * mssOpt2XmlTag(char *str, iconv_t *icid); 
0037: char * mssXmlTag2emptyTag(struct mssXmlTag *xmlTag, iconv_t *icid); 
0038: char * mssXmlTag2startTag(struct mssXmlTag *xmlTag, iconv_t *icid); 
0039: char * mssXmlTag2endTag(struct mssXmlTag *xmlTag, iconv_t *icid); 
0040: void  mssWriteXmlDeclaration( char *ver, char *enc, struct mssFPW *fp ); 
0041: void mssWriteXmlStartTag(struct mssXmlTag *xmlTag, iconv_t *icid, struct mssFPW *fpw); 
0042: void mssWriteXmlEndTag(struct mssXmlTag *xmlTag, iconv_t *icid, struct mssFPW *fpw); 
0043: void mssWriteXmlEmptyTag(struct mssXmlTag *xmlTag, iconv_t *icid, struct mssFPW *fpw); 
0044: void mssWriteXmlContent(char *str, iconv_t *icid, struct mssFPW *fp ); 
0045: void mssWriteXmlIndent(int cnt, struct mssFPW *fpw); 
0046: void mssWriteXmlTagStr(int indCnt, char *elemet, char *content, int retFlg, iconv_t *icid, struct mssFPW *fp ); 
0047: void mssWriteXmlTagInt(int indCnt, char *elemet, int content, int retFlg, iconv_t *icid, struct mssFPW *fp ); 
0048: void mssWriteXmlTagDbl(int indCnt, char *elemet, double content, int retFlg, iconv_t *icid, struct mssFPW *fp ); 
0049: void mssWriteXmlTagFlg(int indCnt, char *elemet, int flg, int retFlg, iconv_t *icid, struct mssFPW *fp ); 
0050:  
0051: #endif /* _XML_H */ 
0052: