node-monk / xml-conv-json Goto Github PK
View Code? Open in Web Editor NEWNode Module that converts XML to JSON using C++
License: MIT License
Node Module that converts XML to JSON using C++
License: MIT License
I have tried installing this on both windows 10 and macOSX with XCODE installed. Following is the log and node version (14.4.0), npm (6.14.5)
CXX(target) Release/obj.target/parseXML/parseXML.o
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:11:
.././libs/xml2json/include/rapidxml/rapidxml.hpp:517:28: warning: if statement has empty body [-Wempty-body]
if (!m_nullstr);
^
.././libs/xml2json/include/rapidxml/rapidxml.hpp:517:28: note: put the semicolon on a separate line to silence this warning
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
In file included from .././libs/xml2json/include/rapidjson/document.h:20:
In file included from .././libs/xml2json/include/rapidjson/reader.h:23:
.././libs/xml2json/include/rapidjson/internal/stack.h:38:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/internal/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
In file included from .././libs/xml2json/include/rapidjson/document.h:20:
In file included from .././libs/xml2json/include/rapidjson/reader.h:23:
.././libs/xml2json/include/rapidjson/internal/stack.h:38:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/internal/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
In file included from .././libs/xml2json/include/rapidjson/document.h:20:
In file included from .././libs/xml2json/include/rapidjson/reader.h:23:
.././libs/xml2json/include/rapidjson/internal/stack.h:60:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/internal/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
In file included from .././libs/xml2json/include/rapidjson/document.h:20:
In file included from .././libs/xml2json/include/rapidjson/reader.h:23:
.././libs/xml2json/include/rapidjson/internal/stack.h:60:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/internal/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:62:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:62:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:438:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:438:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:600:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:600:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1042:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1042:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1328:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1328:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1778:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1778:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1797:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1797:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:16:
In file included from .././libs/xml2json/include/rapidjson/prettywriter.h:18:
In file included from .././libs/xml2json/include/rapidjson/writer.h:23:
.././libs/xml2json/include/rapidjson/stringbuffer.h:20:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:16:
In file included from .././libs/xml2json/include/rapidjson/prettywriter.h:18:
In file included from .././libs/xml2json/include/rapidjson/writer.h:23:
.././libs/xml2json/include/rapidjson/stringbuffer.h:20:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:16:
In file included from .././libs/xml2json/include/rapidjson/prettywriter.h:18:
In file included from .././libs/xml2json/include/rapidjson/writer.h:23:
.././libs/xml2json/include/rapidjson/stringbuffer.h:41:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:16:
In file included from .././libs/xml2json/include/rapidjson/prettywriter.h:18:
In file included from .././libs/xml2json/include/rapidjson/writer.h:23:
.././libs/xml2json/include/rapidjson/stringbuffer.h:41:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
../parseXML.cc:19:27: error: no matching constructor for initialization of 'v8::String::Utf8Value'
v8::String::Utf8Value s1(info[0]);
^ ~~~~~~~
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3274:5: note: candidate constructor not viable: no known conversion from 'v8::Localv8::Value'
to 'const v8::String::Utf8Value' for 1st argument
Utf8Value(const Utf8Value&) = delete;
^
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3267:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
Utf8Value(Isolate* isolate, Localv8::Value obj);
^
../parseXML.cc:25:25: error: no viable conversion from 'MaybeLocalv8::String' to 'v8::Localv8::String'
v8::Localv8::String hTextJS = v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), js1.c_str());
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:189:7: note: candidate constructor (the implicit copy constructor) not viable: no known
conversion from 'MaybeLocalv8::String' to 'const v8::Localv8::String &' for 1st argument
class Local {
^
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:189:7: note: candidate constructor (the implicit move constructor) not viable: no known
conversion from 'MaybeLocalv8::String' to 'v8::Localv8::String &&' for 1st argument
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:193:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
V8_INLINE Local(Local that)
^
../parseXML.cc:32:70: error: too few arguments to function call, single argument 'context' was not specified
Nan::Newv8::FunctionTemplate(parseXML)->GetFunction());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:6404:3: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8config.h:422:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:11:
.././libs/xml2json/include/rapidxml/rapidxml.hpp:1058:45: warning: comparison of integers of different signs: 'long' and 'unsigned long' [-Wsign-compare]
if ((attrname - freeme) >= (prefix_size + 6)) break;
~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
.././libs/xml2json/include/rapidxml/rapidxml.hpp:1027:13: note: in instantiation of member function 'rapidxml::xml_node::xmlns_lookup' requested here
xmlns_lookup(m_xmlns, m_xmlns_size, m_prefix, m_prefix_size);
^
.././libs/xml2json/include/rapidxml/rapidxml.hpp:1122:31: note: in instantiation of member function 'rapidxml::xml_node::xmlns' requested here
xmlns = this->xmlns();
^
.././libs/xml2json/include/xml2json.hpp:109:26: note: in instantiation of member function 'rapidxml::xml_node::first_node' requested here
if (xmlnode->first_node() && xmlnode->first_node()->type() == rapidxml::node_data && count_children(xmlnode) == 1)
^
24 warnings and 3 errors generated.
make: *** [Release/obj.target/parseXML/parseXML.o] Error 1
proy@Priyankas-MBP:workspace/ts-xml2js-benchmark ‹master›$ npm i -s xml-conv-json > log.txt
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:11:
.././libs/xml2json/include/rapidxml/rapidxml.hpp:517:28: warning: if statement has empty body [-Wempty-body]
if (!m_nullstr);
^
.././libs/xml2json/include/rapidxml/rapidxml.hpp:517:28: note: put the semicolon on a separate line to silence this warning
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
In file included from .././libs/xml2json/include/rapidjson/document.h:20:
In file included from .././libs/xml2json/include/rapidjson/reader.h:23:
.././libs/xml2json/include/rapidjson/internal/stack.h:38:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/internal/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
In file included from .././libs/xml2json/include/rapidjson/document.h:20:
In file included from .././libs/xml2json/include/rapidjson/reader.h:23:
.././libs/xml2json/include/rapidjson/internal/stack.h:38:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/internal/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
In file included from .././libs/xml2json/include/rapidjson/document.h:20:
In file included from .././libs/xml2json/include/rapidjson/reader.h:23:
.././libs/xml2json/include/rapidjson/internal/stack.h:60:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/internal/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
In file included from .././libs/xml2json/include/rapidjson/document.h:20:
In file included from .././libs/xml2json/include/rapidjson/reader.h:23:
.././libs/xml2json/include/rapidjson/internal/stack.h:60:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/internal/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:62:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:62:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:438:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:438:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:600:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:600:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1042:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1042:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1328:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1328:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1778:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1778:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1797:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:15:
.././libs/xml2json/include/rapidjson/document.h:1797:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:16:
In file included from .././libs/xml2json/include/rapidjson/prettywriter.h:18:
In file included from .././libs/xml2json/include/rapidjson/writer.h:23:
.././libs/xml2json/include/rapidjson/stringbuffer.h:20:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:16:
In file included from .././libs/xml2json/include/rapidjson/prettywriter.h:18:
In file included from .././libs/xml2json/include/rapidjson/writer.h:23:
.././libs/xml2json/include/rapidjson/stringbuffer.h:20:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:16:
In file included from .././libs/xml2json/include/rapidjson/prettywriter.h:18:
In file included from .././libs/xml2json/include/rapidjson/writer.h:23:
.././libs/xml2json/include/rapidjson/stringbuffer.h:41:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:6: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:16:
In file included from .././libs/xml2json/include/rapidjson/prettywriter.h:18:
In file included from .././libs/xml2json/include/rapidjson/writer.h:23:
.././libs/xml2json/include/rapidjson/stringbuffer.h:41:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
.././libs/xml2json/include/rapidjson/error/../rapidjson.h:442:34: note: expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(GLIBCXX) && GLIBCXX >= 20080306)
^
../parseXML.cc:19:27: error: no matching constructor for initialization of 'v8::String::Utf8Value'
v8::String::Utf8Value s1(info[0]);
^ ~~~~~~~
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3274:5: note: candidate constructor not viable: no known conversion from 'v8::Localv8::Value'
to 'const v8::String::Utf8Value' for 1st argument
Utf8Value(const Utf8Value&) = delete;
^
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:3267:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
Utf8Value(Isolate* isolate, Localv8::Value obj);
^
../parseXML.cc:25:25: error: no viable conversion from 'MaybeLocalv8::String' to 'v8::Localv8::String'
v8::Localv8::String hTextJS = v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), js1.c_str());
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:189:7: note: candidate constructor (the implicit copy constructor) not viable: no known
conversion from 'MaybeLocalv8::String' to 'const v8::Localv8::String &' for 1st argument
class Local {
^
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:189:7: note: candidate constructor (the implicit move constructor) not viable: no known
conversion from 'MaybeLocalv8::String' to 'v8::Localv8::String &&' for 1st argument
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:193:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
V8_INLINE Local(Local that)
^
../parseXML.cc:32:70: error: too few arguments to function call, single argument 'context' was not specified
Nan::Newv8::FunctionTemplate(parseXML)->GetFunction());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8.h:6404:3: note: 'GetFunction' declared here
V8_WARN_UNUSED_RESULT MaybeLocal GetFunction(
^
/Users/proy/Library/Caches/node-gyp/14.4.0/include/node/v8config.h:422:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../parseXML.cc:4:
In file included from .././libs/xml2json/include/xml2json.hpp:11:
.././libs/xml2json/include/rapidxml/rapidxml.hpp:1058:45: warning: comparison of integers of different signs: 'long' and 'unsigned long' [-Wsign-compare]
if ((attrname - freeme) >= (prefix_size + 6)) break;
~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
.././libs/xml2json/include/rapidxml/rapidxml.hpp:1027:13: note: in instantiation of member function 'rapidxml::xml_node::xmlns_lookup' requested here
xmlns_lookup(m_xmlns, m_xmlns_size, m_prefix, m_prefix_size);
^
.././libs/xml2json/include/rapidxml/rapidxml.hpp:1122:31: note: in instantiation of member function 'rapidxml::xml_node::xmlns' requested here
xmlns = this->xmlns();
^
.././libs/xml2json/include/xml2json.hpp:109:26: note: in instantiation of member function 'rapidxml::xml_node::first_node' requested here
if (xmlnode->first_node() && xmlnode->first_node()->type() == rapidxml::node_data && count_children(xmlnode) == 1)
^
24 warnings and 3 errors generated.
make: *** [Release/obj.target/parseXML/parseXML.o] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.