XML(3)
π XML(3) β the glow-up edition π
Library Functions Manual β¨ and yes bestie, this is XML(3) β the manual page for all the XML-related functions and objects. Sit down, grab a strawberry drink π, and let's get into it.
β¨ NAME β¨
XML β XML related functions and objects π¦
πΈ SYNOPSIS πΈ
π 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.
(Yes, it literally says canb. We do not edit the ancestors' typo, we simply respect it π β the parser is yours to use from client code, fr fr.)
π¦ Typedef Documentation π¦
π typedef struct cc_xml_doc cc_xml_doc
opaque container object type for XML documents β okay so this type is an opaque container object type for an XML document structure, and it's also the interface you use for configuring the parsing and writing code. It's giving two-jobs-one-icon energy πβ¨
β Function Documentation β
π cc_xml_doc * cc_xml_doc_new (void ) [related]
Creates a brand new cc_xml_doc object that is totally blank. Fresh out the box, no thoughts, no XML, head empty π«Ά
π void cc_xml_doc_delete_x (cc_xml_doc * doc) [related]
Frees up a cc_xml_doc object and all its resources. Cleanup era, we love to see it π§Ήπ
π 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 is the one that makes it possible to use the parser as a streaming parser, by making the parser discard all elements it has read in π
β οΈ Important caveat bestie, do not skip this: elements can only be discarded as they are popped β on push they will be kept regardless of what the filter callback returns. Periodt. No cap π
π 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 the userdata in the userdata arg. It's giving "here's what you configured, bestie" πβ¨
π Author π
Generated automatically by Doxygen for Coin from the source code. Not a human, not a vibe, just automation doing its thing π€π
And that's the whole page, babe β brought to you by Coin, Version 3.1.3, living in section XML(3) of the library functions manual. Take care of those cc_xml_doc pointers, free them with cc_xml_doc_delete_x, and go slay π«Άπβ¨
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms