SCIP Doxygen Documentation
 
Loading...
Searching...
No Matches
xml.h File Reference

Detailed Description

declarations for XML parsing

Author
Thorsten Koch
Marc Pfetsch

Definition in file xml.h.

Go to the source code of this file.

Functions

XML_NODExmlProcess (const char *filename)
 
XML_NODExmlNewNode (const char *name, int lineno)
 
XML_ATTRxmlNewAttr (const char *name, const char *value)
 
void xmlAddAttr (XML_NODE *n, XML_ATTR *a)
 
void xmlAppendChild (XML_NODE *parent, XML_NODE *child)
 
void xmlFreeNode (XML_NODE *node)
 
void xmlShowNode (const XML_NODE *root)
 
const char * xmlGetAttrval (const XML_NODE *node, const char *name)
 
const XML_NODExmlFirstNode (const XML_NODE *node, const char *name)
 
const XML_NODExmlNextNode (const XML_NODE *node, const char *name)
 
const XML_NODExmlFindNode (const XML_NODE *node, const char *name)
 
const XML_NODExmlFindNodeMaxdepth (const XML_NODE *node, const char *name, int depth, int maxdepth)
 
const XML_NODExmlNextSibl (const XML_NODE *node)
 
const XML_NODExmlPrevSibl (const XML_NODE *node)
 
const XML_NODExmlFirstChild (const XML_NODE *node)
 
const XML_NODExmlLastChild (const XML_NODE *node)
 
const char * xmlGetName (const XML_NODE *node)
 
int xmlGetLine (const XML_NODE *node)
 
const char * xmlGetData (const XML_NODE *node)
 
const char * xmlFindPcdata (const XML_NODE *node, const char *name)
 

Typedef Documentation

◆ XML_ATTR

typedef struct XML_ATTR_struct XML_ATTR

Definition at line 41 of file xml.h.

◆ XML_NODE

typedef struct XML_NODE_struct XML_NODE

Definition at line 50 of file xml.h.

Function Documentation

◆ xmlProcess()

◆ xmlNewNode()

XML_NODE * xmlNewNode ( const char * name,
int lineno )

create new node

Definition at line 1176 of file xmlparse.c.

References assert(), BMSallocMemory, BMSclearMemory, BMSduplicateMemoryArray, and NULL.

Referenced by handleDecl(), handleStarttag(), procPcdata(), and xmlProcess().

◆ xmlNewAttr()

XML_ATTR * xmlNewAttr ( const char * name,
const char * value )

create new attribute

Definition at line 1195 of file xmlparse.c.

References a, assert(), BMSallocMemory, BMSclearMemory, BMSduplicateMemoryArray, and NULL.

Referenced by procInTag(), and xmlProcess().

◆ xmlAddAttr()

void xmlAddAttr ( XML_NODE * n,
XML_ATTR * a )

add attribute

Definition at line 1215 of file xmlparse.c.

References a, assert(), and NULL.

Referenced by procInTag(), and xmlProcess().

◆ xmlAppendChild()

void xmlAppendChild ( XML_NODE * parent,
XML_NODE * child )

append child node

Definition at line 1228 of file xmlparse.c.

References assert(), and NULL.

Referenced by handleDecl(), handleStarttag(), and procPcdata().

◆ xmlFreeNode()

void xmlFreeNode ( XML_NODE * node)

◆ xmlShowNode()

void xmlShowNode ( const XML_NODE * root)

output node

Definition at line 1309 of file xmlparse.c.

References a, assert(), infoMessage, NULL, and xmlShowNode().

Referenced by SCIP_DECL_READERREAD(), and xmlShowNode().

◆ xmlGetAttrval()

const char * xmlGetAttrval ( const XML_NODE * node,
const char * name )

◆ xmlFirstNode()

const XML_NODE * xmlFirstNode ( const XML_NODE * node,
const char * name )

return first node

Definition at line 1362 of file xmlparse.c.

References assert(), and NULL.

Referenced by xmlNextNode().

◆ xmlNextNode()

const XML_NODE * xmlNextNode ( const XML_NODE * node,
const char * name )

return next node

Definition at line 1382 of file xmlparse.c.

References assert(), NULL, and xmlFirstNode().

◆ xmlFindNode()

const XML_NODE * xmlFindNode ( const XML_NODE * node,
const char * name )

find node

Definition at line 1394 of file xmlparse.c.

References assert(), NULL, r, and xmlFindNode().

Referenced by xmlFindNode(), and xmlFindPcdata().

◆ xmlFindNodeMaxdepth()

const XML_NODE * xmlFindNodeMaxdepth ( const XML_NODE * node,
const char * name,
int depth,
int maxdepth )

find node with bound on the depth

Parameters
nodecurrent node - use start node to begin
namename of tag to search for
depthcurrent depth - start with 0 for root
maxdepthmaximal depth

Definition at line 1419 of file xmlparse.c.

References assert(), depth, maxdepth, NULL, r, and xmlFindNodeMaxdepth().

Referenced by readConstraints(), readLinearCoefs(), readNConstraints(), readNonlinearExprs(), readObjective(), readQuadraticCoefs(), readSOScons(), readVariables(), readXmlSolFile(), SCIP_DECL_READERREAD(), and xmlFindNodeMaxdepth().

◆ xmlNextSibl()

const XML_NODE * xmlNextSibl ( const XML_NODE * node)

◆ xmlPrevSibl()

const XML_NODE * xmlPrevSibl ( const XML_NODE * node)

return previous sibling

Definition at line 1459 of file xmlparse.c.

References assert(), and NULL.

◆ xmlFirstChild()

const XML_NODE * xmlFirstChild ( const XML_NODE * node)

◆ xmlLastChild()

const XML_NODE * xmlLastChild ( const XML_NODE * node)

return last child

Definition at line 1479 of file xmlparse.c.

References assert(), and NULL.

◆ xmlGetName()

const char * xmlGetName ( const XML_NODE * node)

return name of node

Definition at line 1489 of file xmlparse.c.

References assert(), and NULL.

Referenced by readExpression(), readLinearCoefs(), readNonlinearExprs(), readQuadraticCoefs(), and readSOScons().

◆ xmlGetLine()

int xmlGetLine ( const XML_NODE * node)

get line number

Definition at line 1499 of file xmlparse.c.

References assert(), and NULL.

◆ xmlGetData()

const char * xmlGetData ( const XML_NODE * node)

get data

Definition at line 1509 of file xmlparse.c.

References assert(), and NULL.

Referenced by readLinearCoefs(), readObjective(), and SCIP_DECL_READERREAD().

◆ xmlFindPcdata()

const char * xmlFindPcdata ( const XML_NODE * node,
const char * name )

find PCDATA

Definition at line 1519 of file xmlparse.c.

References assert(), NULL, and xmlFindNode().