1
/**************************************************************************
2
*** COPYRIGHT (c) 2002 by TransNexus, Inc. ***
4
*** This software is property of TransNexus, Inc. ***
5
*** This software is freely available under license from TransNexus. ***
6
*** The license terms and conditions for free use of this software by ***
7
*** third parties are defined in the OSP Toolkit Software License ***
8
*** Agreement (LICENSE.txt). Any use of this software by third ***
9
*** parties, which does not comply with the terms and conditions of the ***
10
*** OSP Toolkit Software License Agreement is prohibited without ***
11
*** the prior, express, written consent of TransNexus, Inc. ***
13
*** Thank you for using the OSP ToolKit(TM). Please report any bugs, ***
14
*** suggestions or feedback to support@transnexus.com ***
16
**************************************************************************/
25
* ospxmlattr.h - Structures and prototypes for generic XML attributes.
32
#include "osp/osplist.h"
35
* An XMLAttr structure represents an XML attribute in its
36
* natural form ("natural" in the sense of easiest to reference
37
* in code). It includes the attribute's name, as well as the
38
* character value. The structure is defined as a linked list
39
* so that multiple attributes (e.g. for the same element) can
43
typedef struct OSPSXMLAttr
45
OSPTLISTLINK ospmXMLAttrLink;
46
const char *ospmXMLAttrName;
47
const char *ospmXMLAttrValue;
52
#define OSPC_MAX_ID_LEN 25
55
/*-----------------------------------------------------------------------*
57
*-----------------------------------------------------------------------*/
64
OSPTXMLATTR *OSPPXMLAttrNew(const unsigned char *, const unsigned char *);
65
void OSPPXMLAttrDelete(OSPTXMLATTR **);
67
const char *OSPPXMLAttrGetName(OSPTXMLATTR *);
69
const char *OSPPXMLAttrGetValue(OSPTXMLATTR *);