MagickCore  6.9.10
Convert, Edit, Or Compose Bitmap Images
xml-tree.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2020 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License. You may
6  obtain a copy of the License at
7 
8  https://imagemagick.org/script/license.php
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  Magick's toolkit xml-tree methods.
17 */
18 #ifndef MAGICKCORE_XML_TREE_H
19 #define MAGICKCORE_XML_TREE_H
20 
21 #include "magick/exception.h"
22 #include "magick/splay-tree.h"
23 
24 #if defined(__cplusplus) || defined(c_plusplus)
25 extern "C" {
26 #endif
27 
28 typedef struct _XMLTreeInfo
30 
31 extern MagickExport char
32  *CanonicalXMLContent(const char *,const MagickBooleanType),
34 
35 extern MagickExport const char
36  *GetXMLTreeAttribute(XMLTreeInfo *,const char *),
40 
43 
45  *AddChildToXMLTree(XMLTreeInfo *,const char *,const size_t),
46  *AddPathToXMLTree(XMLTreeInfo *,const char *,const size_t),
49  *GetXMLTreeChild(XMLTreeInfo *,const char *),
51  *GetXMLTreePath(XMLTreeInfo *,const char *),
53  *InsertTagIntoXMLTree(XMLTreeInfo *,XMLTreeInfo *,const size_t),
54  *NewXMLTree(const char *,ExceptionInfo *),
55  *NewXMLTreeTag(const char *),
58  *SetXMLTreeAttribute(XMLTreeInfo *,const char *,const char *),
59  *SetXMLTreeContent(XMLTreeInfo *,const char *);
60 
61 #if defined(__cplusplus) || defined(c_plusplus)
62 }
63 #endif
64 
65 #endif
MagickExport XMLTreeInfo * AddChildToXMLTree(XMLTreeInfo *xml_info, const char *tag, const size_t offset)
Definition: xml-tree.c:166
Definition: xml-tree.c:76
MagickExport XMLTreeInfo * DestroyXMLTree(XMLTreeInfo *xml_info)
Definition: xml-tree.c:557
MagickExport char * XMLTreeInfoToXML(XMLTreeInfo *xml_info)
Definition: xml-tree.c:2762
MagickExport MagickBooleanType GetXMLTreeAttributes(const XMLTreeInfo *xml_info, SplayTreeInfo *attributes)
Definition: xml-tree.c:847
MagickExport XMLTreeInfo * AddPathToXMLTree(XMLTreeInfo *xml_info, const char *path, const size_t offset)
Definition: xml-tree.c:214
MagickExport XMLTreeInfo * ParseTagFromXMLTree(XMLTreeInfo *)
MagickExport XMLTreeInfo * GetNextXMLTreeTag(XMLTreeInfo *xml_info)
Definition: xml-tree.c:743
MagickExport char * CanonicalXMLContent(const char *content, const MagickBooleanType pedantic)
Definition: xml-tree.c:299
Definition: exception.h:102
MagickExport XMLTreeInfo * GetXMLTreePath(XMLTreeInfo *xml_info, const char *path)
Definition: xml-tree.c:1002
MagickExport XMLTreeInfo * GetXMLTreeChild(XMLTreeInfo *xml_info, const char *tag)
Definition: xml-tree.c:895
MagickExport const char * GetXMLTreeTag(XMLTreeInfo *xml_info)
Definition: xml-tree.c:1157
Definition: splay-tree.c:82
MagickExport XMLTreeInfo * GetXMLTreeOrdered(XMLTreeInfo *xml_info)
Definition: xml-tree.c:967
MagickBooleanType
Definition: magick-type.h:198
MagickExport const char ** GetXMLTreeProcessingInstructions(XMLTreeInfo *xml_info, const char *target)
Definition: xml-tree.c:1077
MagickExport const char * GetXMLTreeContent(XMLTreeInfo *xml_info)
Definition: xml-tree.c:935
MagickExport XMLTreeInfo * InsertTagIntoXMLTree(XMLTreeInfo *xml_info, XMLTreeInfo *child, const size_t offset)
Definition: xml-tree.c:1195
MagickExport XMLTreeInfo * GetXMLTreeSibling(XMLTreeInfo *xml_info)
Definition: xml-tree.c:1125
MagickExport const char * GetXMLTreeAttribute(XMLTreeInfo *xml_info, const char *tag)
Definition: xml-tree.c:778
MagickExport XMLTreeInfo * SetXMLTreeContent(XMLTreeInfo *xml_info, const char *content)
Definition: xml-tree.c:2585
MagickExport XMLTreeInfo * NewXMLTreeTag(const char *tag)
Definition: xml-tree.c:2363
MagickExport XMLTreeInfo * SetXMLTreeAttribute(XMLTreeInfo *xml_info, const char *tag, const char *value)
Definition: xml-tree.c:2493
#define MagickExport
Definition: method-attribute.h:80
MagickExport XMLTreeInfo * NewXMLTree(const char *xml, ExceptionInfo *exception)
Definition: xml-tree.c:1957
MagickExport XMLTreeInfo * PruneTagFromXMLTree(XMLTreeInfo *xml_info)
Definition: xml-tree.c:2419