NCBI C++ ToolKit
Classes | Functions | Variables
document.cpp File Reference

This file contains the implementation of the xml::document class. More...

#include <misc/xmlwrapp/document.hpp>
#include <misc/xmlwrapp/node.hpp>
#include <misc/xmlwrapp/dtd.hpp>
#include <misc/xmlwrapp/schema.hpp>
#include <misc/xmlwrapp/exception.hpp>
#include "stylesheet_impl.hpp"
#include "utility.hpp"
#include "document_impl.hpp"
#include "node_manip.hpp"
#include "https_input_impl.hpp"
#include <new>
#include <memory>
#include <iterator>
#include <iostream>
#include <algorithm>
#include <stdexcept>
#include <string.h>
#include <libxml/parser.h>
#include <libxml/parserInternals.h>
#include <libxml/SAX.h>
#include <libxml/xmlversion.h>
#include <libxml/tree.h>
#include <libxml/xinclude.h>
#include <libxml/xmlsave.h>
#include <libxml/c14n.h>
#include <ncbiconf.h>
+ Include dependency graph for document.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  cmp
 

Functions

static int c14n_op_to_libxml2_op (xml::canonicalization_option op)
 
static void sort_node_recursively (xml::node &n)
 
static void remove_comments_recursively (xml::node &n)
 
static void sort_attributes_recursively (xml::node &n)
 
static void sort_namespace_definitions_recursively (xml::node &n)
 
static void set_parser_context_options (xmlParserCtxtPtr ctxt)
 
static xmlDocPtr xmlSAXParseFileWithData_Custom (xmlSAXHandlerPtr sax, const char *filename, void *data)
 

Variables

static const std::size_t const_buffer_size = 4096
 

Detailed Description

This file contains the implementation of the xml::document class.

Definition in file document.cpp.

Function Documentation

◆ c14n_op_to_libxml2_op()

static int c14n_op_to_libxml2_op ( xml::canonicalization_option  op)
static

◆ remove_comments_recursively()

static void remove_comments_recursively ( xml::node n)
static

Definition at line 130 of file document.cpp.

References xml::node::get_type(), n, and xml::node::type_comment.

Referenced by xml::document::save_to_string_canonical().

◆ set_parser_context_options()

static void set_parser_context_options ( xmlParserCtxtPtr  ctxt)
static

Definition at line 159 of file document.cpp.

References NULL.

Referenced by xml::document::document(), and xmlSAXParseFileWithData_Custom().

◆ sort_attributes_recursively()

static void sort_attributes_recursively ( xml::node n)
static

Definition at line 143 of file document.cpp.

References n, and xml::node::type_element.

Referenced by xml::document::save_to_string_canonical().

◆ sort_namespace_definitions_recursively()

static void sort_namespace_definitions_recursively ( xml::node n)
static

Definition at line 151 of file document.cpp.

References n.

Referenced by xml::document::save_to_string_canonical().

◆ sort_node_recursively()

static void sort_node_recursively ( xml::node n)
static

Definition at line 122 of file document.cpp.

References n, and xml::node::type_element.

Referenced by xml::document::save_to_string_canonical().

◆ xmlSAXParseFileWithData_Custom()

static xmlDocPtr xmlSAXParseFileWithData_Custom ( xmlSAXHandlerPtr  sax,
const char *  filename,
void *  data 
)
static

Definition at line 237 of file document.cpp.

References data, NULL, and set_parser_context_options().

Referenced by xml::document::document().

Variable Documentation

◆ const_buffer_size

const std::size_t const_buffer_size = 4096
static

Definition at line 420 of file document.cpp.

Referenced by xml::document::document(), and xml::event_parser::parse_stream().

Modified on Tue May 28 05:53:01 2024 by modify_doxy.py rev. 669887