Oyranos Colour Management System API
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
oyranos_xml.h File Reference

xml handling More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <libxml/parser.h>
#include "config.h"
#include "oyranos.h"
#include "oyranos_debug.h"
#include "oyranos_helper.h"
#include "oyranos_internal.h"

Functions

void oyWriteOptionToXML_ (oyGROUP_e group, oyWIDGET_e start, oyWIDGET_e end, char **text, uint32_t flags)
 
const char * oyXFORMsModelGetAttrValue (xmlNodePtr cur, const char *attr_name)
 get the xml elements attribute value
 
const char * oyXFORMsModelGetXPathValue (xmlNodePtr cur, const char *attr_name, const char **path)
 get the xforms model value of a corresponding layout node
 
int oyXMLNodeNameIs (xmlNodePtr cur, const char *node_name)
 string compare with a joined namespace and node name
 
const char * oyXML2NodeValue (xmlNodePtr cur)
 get a node childs text value
 

Detailed Description

xml handling

Oyranos is an open source Colour Management System

Copyright:
2006-2009 (C) Kai-Uwe Behrmann

Function Documentation

void oyWriteOptionToXML_ ( oyGROUP_e  group,
oyWIDGET_e  start,
oyWIDGET_e  end,
char **  text,
uint32_t  flags 
)

write option range to text, allocating memory on demand

Parameters
[in]flags- 1: add group start
  • 2: add group end

References oyWIDGETTYPE_BEHAVIOUR.

const char* oyXFORMsModelGetAttrValue ( xmlNodePtr  cur,
const char *  attr_name 
)

get the xml elements attribute value

Function oyXFORMsModelGetAttrValue

Parameters
[in]curthe libxml2 node
[in]attr_namethe nodes attribute
Returns
the attributes value
Version
Oyranos: 0.3.2
Since
2011/07/31 (Oyranos: 0.3.2)
Date
2011/07/31

Referenced by oyXFORMsModelGetXPathValue().

const char* oyXFORMsModelGetXPathValue ( xmlNodePtr  cur,
const char *  attr_name,
const char **  xpath 
)

get the xforms model value of a corresponding layout node

Function oyXFORMsModelGetXPathValue

Parameters
[in]curthe libxml2 node
[in]attr_namethe nodes attribute, only "ref" ?
[out]xpaththe xpath of the referenced key
Returns
the attributes value
Version
Oyranos: 0.1.10
Since
2009/11/11 (Oyranos: 0.1.10)
Date
2009/11/11

References oyXFORMsModelGetAttrValue().

const char* oyXML2NodeValue ( xmlNodePtr  cur)

get a node childs text value

Function oyXML2NodeValue

Parameters
[in]curthe libxml2 node
Returns
the childs text value
Version
Oyranos: 0.1.10
Since
2009/11/11 (Oyranos: 0.1.10)
Date
2009/11/11
int oyXMLNodeNameIs ( xmlNodePtr  cur,
const char *  node_name 
)

string compare with a joined namespace and node name

Function oyXMLNodeNameIs

Returns
boolean
Version
Oyranos: 0.1.10
Since
2009/11/12 (Oyranos: 0.1.10)
Date
2009/11/12