16 #ifndef DABC_XmlEngine
17 #define DABC_XmlEngine
40 const char* name,
const char* value);
49 const char* name,
const char* content =
nullptr);
62 const char* type =
"text/css",
63 const char* title =
nullptr,
65 const char* media =
nullptr,
66 const char* charset =
nullptr);
69 const char* type =
"text/css",
70 const char* title =
nullptr,
72 const char* media =
nullptr,
73 const char* charset =
nullptr);
100 char*
Makestr(
const char* str);
101 char*
Makenstr(
const char* start,
int len);
XMLNsPointer_t FindNs(XMLNodePointer_t xmlnode, const char *nsname)
int GetIntAttr(XMLNodePointer_t node, const char *name)
bool ValidateVersion(XMLDocPointer_t doc, const char *version=nullptr)
void AssignDtd(XMLDocPointer_t xmldoc, const char *dtdname, const char *rootname)
void UnpackSpecialCharacters(char *target, const char *source, int srclen)
XMLDocPointer_t ParseFile(const char *filename, bool showerr=true)
void SaveDoc(XMLDocPointer_t xmldoc, const char *filename, int layout=1)
void FreeAttr(XMLNodePointer_t xmlnode, const char *name)
bool HasAttr(XMLNodePointer_t xmlnode, const char *name)
bool AddDocRawLine(XMLDocPointer_t xmldoc, const char *line)
void AddChildFirst(XMLNodePointer_t parent, XMLNodePointer_t child)
XMLAttrPointer_t GetFirstAttr(XMLNodePointer_t xmlnode)
bool AddRawLine(XMLNodePointer_t parent, const char *line)
XMLNodePointer_t DocGetRootElement(XMLDocPointer_t xmldoc)
void UnlinkFreeNode(XMLNodePointer_t xmlnode)
const char * GetAttrValue(XMLAttrPointer_t xmlattr)
XMLNodePointer_t GetNext(XMLNodePointer_t xmlnode)
XMLNodePointer_t GetParent(XMLNodePointer_t xmlnode)
const char * GetAttr(XMLNodePointer_t xmlnode, const char *name)
void SaveNode(XMLNodePointer_t xmlnode, XmlOutputStream *out, int layout, int level)
void UnlinkNode(XMLNodePointer_t node)
void AddChild(XMLNodePointer_t parent, XMLNodePointer_t child)
void FreeNode(XMLNodePointer_t xmlnode)
XMLAttrPointer_t NewAttr(XMLNodePointer_t xmlnode, XMLNsPointer_t, const char *name, const char *value)
XMLAttrPointer_t NewIntAttr(XMLNodePointer_t xmlnode, const char *name, int value)
XMLDocPointer_t ParseString(const char *xmlstring, bool showerr=true)
bool AddDocStyleSheet(XMLDocPointer_t xmldoc, const char *href, const char *type="text/css", const char *title=nullptr, int alternate=-1, const char *media=nullptr, const char *charset=nullptr)
void CleanNode(XMLNodePointer_t xmlnode)
const char * GetNodeName(XMLNodePointer_t xmlnode)
XMLNodePointer_t GetChild(XMLNodePointer_t xmlnode)
const char * GetNodeContent(XMLNodePointer_t xmlnode)
XMLNsPointer_t NewNS(XMLNodePointer_t xmlnode, const char *reference, const char *name=nullptr)
XMLNodePointer_t NewChild(XMLNodePointer_t parent, XMLNsPointer_t ns, const char *name, const char *content=nullptr)
XMLAttrPointer_t AllocateAttr(int namelen, int valuelen, XMLNodePointer_t xmlnode)
XMLNodePointer_t ReadSingleNode(const char *src)
XMLNodePointer_t ReadNode(XMLNodePointer_t xmlparent, XmlInputStream *inp, int &resvalue)
void FreeDoc(XMLDocPointer_t xmldoc)
const char * GetNSReference(XMLNsPointer_t ns)
void FreeAllAttr(XMLNodePointer_t xmlnode)
XMLNsPointer_t GetNS(XMLNodePointer_t xmlnode)
const char * GetAttrName(XMLAttrPointer_t xmlattr)
char * Makestr(const char *str)
void ShiftToNext(XMLNodePointer_t &xmlnode, bool tonode=true)
bool IsEmptyNode(XMLNodePointer_t xmlnode)
void SaveSingleNode(XMLNodePointer_t xmlnode, std::string *res, int layout=1)
bool AddComment(XMLNodePointer_t parent, const char *comment)
XMLAttrPointer_t GetNextAttr(XMLAttrPointer_t xmlattr)
void DisplayError(int error, int linenumber)
void SkipEmpty(XMLNodePointer_t &xmlnode)
XMLNodePointer_t AllocateNode(int namelen, XMLNodePointer_t parent)
bool AddStyleSheet(XMLNodePointer_t parent, const char *href, const char *type="text/css", const char *title=nullptr, int alternate=-1, const char *media=nullptr, const char *charset=nullptr)
void TruncateNsExtension(XMLNodePointer_t xmlnode)
const char * GetNSName(XMLNsPointer_t ns)
char * Makenstr(const char *start, int len)
XMLDocPointer_t NewDoc(const char *version="1.0")
void OutputValue(char *value, XmlOutputStream *out)
bool AddDocComment(XMLDocPointer_t xmldoc, const char *comment)
void DocSetRootElement(XMLDocPointer_t xmldoc, XMLNodePointer_t xmlnode)
XMLDocPointer_t ParseStream(XmlInputStream *input, bool showerr)