00001
00002
00003 #if !defined(XmlUtil_H)
00004 #define XmlUtil_H
00005
00006
00008
00009
00010 #define idTagLeft "<"
00011 #define idTagRight ">"
00012 #define idTagEnd "</"
00013 #define idTagNoData "/>"
00014
00015
00016 #define idTagLeftLength 1
00017 #define idTagRightLength 1
00018 #define idTagEndLength 2
00019
00020
00021 #include <string>
00022 using namespace std;
00023
00024
00025
00027
00028
00029
00030
00031 class XmlUtil
00032 {
00033
00034
00035 static string getStartTag ( string & text )
00036 {
00037 string tag = idTagLeft;
00038 tag += text;
00039 tag += idTagRight;
00040
00041 return string(tag);
00042 }
00043
00044
00045 static string getEndTag ( string & text )
00046 {
00047 string tag = idTagEnd;
00048 tag += text;
00049 tag += idTagRight;
00050
00051 return string(tag);
00052 }
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072 };
00073
00074
00075 #endif