#include <iostream>#include <map>#include <string>#include <cctype>#include "rapidxml/rapidxml.hpp"#include "rapidxml/rapidxml_utils.hpp"#include "rapidxml/rapidxml_print.hpp"#include "rapidjson/document.h"#include "rapidjson/prettywriter.h"#include "rapidjson/encodedstream.h"#include "rapidjson/stringbuffer.h"#include "rapidjson/reader.h"#include "rapidjson/writer.h"#include "rapidjson/filereadstream.h"#include "rapidjson/filewritestream.h"#include "rapidjson/error/en.h"Go to the source code of this file.
Functions | |
| static bool | xml2json_has_digits_only (const char *input, bool *hasDecimal) |
| void | xml2json_to_array_form (const char *name, rapidjson::Value &jsvalue, rapidjson::Value &jsvalue_chd, rapidjson::Document::AllocatorType &allocator) |
| void | xml2json_add_attributes (rapidxml::xml_node<> *xmlnode, rapidjson::Value &jsvalue, rapidjson::Document::AllocatorType &allocator) |
| void | xml2json_traverse_node (rapidxml::xml_node<> *xmlnode, rapidjson::Value &jsvalue, rapidjson::Document::AllocatorType &allocator) |
| std::string | xml2json (const char *xml_str) |
Variables | |
| static const char | xml2json_text_additional_name [] = "#text" |
| static const char | xml2json_attribute_name_prefix [] = "@" |
| static const bool | xml2json_numeric_support = false |
| std::string xml2json | ( | const char * | xml_str | ) |
Definition at line 244 of file xml2json.hpp.
| void xml2json_add_attributes | ( | rapidxml::xml_node<> * | xmlnode, |
| rapidjson::Value & | jsvalue, | ||
| rapidjson::Document::AllocatorType & | allocator | ||
| ) |
Definition at line 94 of file xml2json.hpp.
|
static |
Definition at line 42 of file xml2json.hpp.
| void xml2json_to_array_form | ( | const char * | name, |
| rapidjson::Value & | jsvalue, | ||
| rapidjson::Value & | jsvalue_chd, | ||
| rapidjson::Document::AllocatorType & | allocator | ||
| ) |
Definition at line 70 of file xml2json.hpp.
| void xml2json_traverse_node | ( | rapidxml::xml_node<> * | xmlnode, |
| rapidjson::Value & | jsvalue, | ||
| rapidjson::Document::AllocatorType & | allocator | ||
| ) |
Definition at line 131 of file xml2json.hpp.
|
static |
Definition at line 28 of file xml2json.hpp.
|
static |
Definition at line 32 of file xml2json.hpp.
|
static |
Definition at line 27 of file xml2json.hpp.