---
name: "XML"
section: "3"
platform: "linux"
package: "libcoin80-doc"
version: "3.1.4~abc9f50-7"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/XML"
---

# XML(3)

## NAME

XML related functions and objects -

### Typedefs

typedef struct cc\_xml\_doc **cc\_xml\_doc**\
 *opaque container object type for XML documents*

### Functions

**cc\_xml\_doc** \* **cc\_xml\_doc\_new** (void)\
 void **cc\_xml\_doc\_delete\_x** (**cc\_xml\_doc** \*doc)\
 void **cc\_xml\_doc\_set\_filter\_cb\_x** (**cc\_xml\_doc** \*doc, **cc\_xml\_filter\_cb** \*cb, void \*userdata)\
 void **cc\_xml\_doc\_get\_filter\_cb** (const **cc\_xml\_doc** \*doc, **cc\_xml\_filter\_cb** \*&cb, void \*&userdata)\

## Detailed Description

Coin now has its own XML parser that also canb be used from client code.

## Typedef Documentation

### typedef struct cc\_xml\_doc cc\_xml\_doc

opaque container object type for XML documents This type is an opaque container object type for an XML document structure, and also the interface for configuring the parsing and writing code.

## Function Documentation

### cc\_xml\_doc \* cc\_xml\_doc\_new (void)` [related]`

Creates a new cc\_xml\_doc object that is totally blank.

### void cc\_xml\_doc\_delete\_x (cc\_xml\_doc \*doc)` [related]`

Frees up a cc\_xml\_doc object and all its resources.

### void cc\_xml\_doc\_set\_filter\_cb\_x (cc\_xml\_doc \*doc, cc\_xml\_filter\_cb \*cb, void \*userdata)` [related]`

Sets the filter callback for document parsing. This makes it possible to use the parser as a streaming parser, by making the parser discard all elements it has read in.

Elements can only be discarded as they are popped - on push they will be kept regardless of what the filter callback returns.

### void cc\_xml\_doc\_get\_filter\_cb (const cc\_xml\_doc \*doc, cc\_xml\_filter\_cb \*&cb, void \*&userdata)` [related]`

Returns the set filter callback in the *cb* arg and *userdata* arg.

## Author

Generated automatically by Doxygen for Coin from the source code.
