Filename: sflxml.h
Package: Standard Function Library (SFL)
Written: 1998/02/25 iMatix SFL project team sfl@imatix.com
Revised: 2000/01/16
Copyright: Copyright (c) 1991-99 iMatix Corporation
Synopsis
Provides functions to read and write XML files, and manipulate
XML data in memory as list structures. XML is the Extensible
Markup Language. Accepts this XML syntax: <item
[attr=["]value["]]...>value [child]</item>
List of Functions
- XML_ITEM * xml new
(XML_ITEM *parent, const char *name, const char *value);
- XML_ITEM * xml create
(const char *name, const char *value);
- void xml modify value
(XML_ITEM *item, const char *value);
- void xml rename
(XML_ITEM *item, const char *name);
- char * xml item name
(XML_ITEM *item);
- char * xml item value
(XML_ITEM *item);
- void xml free
(XML_ITEM *item);
- void xml attach child
(XML_ITEM *parent, XML_ITEM *item);
- void xml attach sibling
(XML_ITEM *sibling, XML_ITEM *item);
- void xml detach
(XML_ITEM *item);
- XML_ITEM * xml first child
(XML_ITEM *item);
- XML_ITEM * xml last child
(XML_ITEM *item);
- XML_ITEM * xml next sibling
(XML_ITEM *item);
- XML_ITEM * xml prev sibling
(XML_ITEM *item);
- XML_ITEM * xml parent
(XML_ITEM *item);
- int xml put attr ic
(XML_ITEM *item, const char *name, const char *value, Bool
ignore_case);
- XML_ATTR * xml attr ic
(XML_ITEM *item, const char *name, Bool ignore_case);
- char * xml attr name
(XML_ATTR *item);
- char * xml attr value
(XML_ATTR *item);
- char * xml get attr ic
(XML_ITEM *item, const char *name, const char *deflt, Bool
ignore_case);
- void xml free attr
(XML_ATTR *attr);
- XML_ATTR * xml first attr
(XML_ITEM *item);
- XML_ATTR * xml last attr
(XML_ITEM *item);
- XML_ATTR * xml next attr
(XML_ATTR *attr);
- XML_ATTR * xml prev attr
(XML_ATTR *attr);
- Bool xml changed
(XML_ITEM *item);
- Bool xml refresh
(XML_ITEM **item);
List of Symbol Definitions
sflxml.h defines these symbols, possibly conditionally:
Symbol: |
Defined as: |
---|
FORATTRIBUTES(attr,item)
| for (attr = xml_first_attr (item); |
FORCHILDREN(child,item)
| for (child = xml_first_child (item); |
FORVALUES(child,item)
| for (child = xml_first_child (item); |
SLFXML_INCLUDED
| TRUE
|
xml_attr(item,
| name) |
xml_get_attr(item,
| name, dflt) |
xml_put_attr(item,
| name, value) |
List of Type Definitions
Type name: |
Defined as: |
---|
XML_ATTR
| struct _XML_ATTR
|
XML_ITEM
| struct _XML_ITEM
|
| << | <
| > | >>
|
Copyright © 1996-2000 iMatix Corporation |