Giter Site home page Giter Site logo

qorelanguage / module-xml Goto Github PK

View Code? Open in Web Editor NEW
0.0 14.0 1.0 1.76 MB

Qore XML module with SAX and DOM XML parsing support as well XML-RPC and SOAP support

License: GNU Lesser General Public License v2.1

CMake 1.38% Shell 0.80% C++ 80.45% Makefile 2.12% M4 15.25%
qore xml xml-rpc xmlrpc

module-xml's Introduction

Qore xml module

INTRODUCTION
------------
The Qore xml module provides XML functionality to Qore.  This was previously
part of the main qore library but moved to this module in qore v0.8.1

see docs for more information


LICENSE
-------
The source code is released under the LGPL 2.1 and MIT licenses; either license
may be used at the user's discretion.  Note that both licenses are treated
equally by the Qore library in the sense that both licenses allow the module
to be loaded without restrictions by the Qore library (even when the Qore
library is initialized in GPL mode).
See COPYING.MIT and COPYING.LGPL for details on the open-source licenses.


BUILDING
--------
Requires qore 0.8.3+, libxml2 2.6.0+ (http://www.xmlsoft.org), and openssl
headers and libraries to build and run

to configure the build, execute
   	configure --disable-debug

if the qore library cannot be found, then you can use:
   	configure --disable-debug --with-qore=<dir>

if libxml2 cannot be found, then you can use:
   	configure --disable-debug --with-libxml2-dir=<dir>

if openssl cannot be found, then you can use:
	configure --disable-debug --with-openssl-dir=<dir>

The qore binary also needs to be in the path so configure can determine the
module directory

Then execute

make && make install

(or 'make && sudo make install' as needed)

please direct any questions to:
[email protected]

module-xml's People

Contributors

davidnich avatar tmandys avatar tethal avatar sejvlond avatar pvanek avatar pavelkveton avatar tehe avatar geckon avatar martin-zemek avatar turlyalz avatar skriesch avatar petrycta avatar

Watchers

Petr Chalupny avatar  avatar Jan Kozak avatar _/\__/\__/\__/\_ avatar James Cloos avatar Niclas Rosenvik avatar  avatar  avatar  avatar  avatar  avatar  avatar Joao Miranda avatar  avatar

Forkers

sejvlond

module-xml's Issues

Tests fail with qore "0.9.0"

Some of the module-xml tests fail. I'm using the latest development qore "0.9.0" version (which I believe is also used by jenkins). I'm not sure whether the problem is in qore or this module or in the tests but I suppose the tests used to work correctly in the past.

QUnit Test "SalesforceTest" v1.0
Skipped: account: 0 assertions
Skip requested at Salesforce.com.qtest:122 [SalesforceTest::accountTests()]
-----
	>> no Salesforce.com connection
-----
ERROR: salesforceSoapConnectionTest: 7 assertions
Unexpected exception: PARSE-ERROR at Salesforce.com.qtest:274
-----
	>> System exception: Salesforce.com.qtest:274: PARSE-ERROR: parsing can only happen once for each Program container
	>> call stack:
	>>   Program::parse() called at Salesforce.com.qtest:274 (builtin function)
	>>   SalesforceTest::checkPreAndPostProcessing() called at Salesforce.com.qtest:258 (user function)
	>>   SalesforceTest::salesforceSoapConnectionTest() called at /usr/share/qore-modules/0.9.0/QUnit.qm:450 (user function)
	>>   call_function_args() called at /usr/share/qore-modules/0.9.0/QUnit.qm:450 (builtin function)
-----
Ran 2 test cases, 1 succeeded, 1 error (7 assertions)
QUnit Test "SoapClientTest" v1.0
ERROR: SoapConnectionTest: 10 assertions
Unexpected exception: PARSE-ERROR at SoapClient.qtest:355
-----
	>> System exception: SoapClient.qtest:355: PARSE-ERROR: parsing can only happen once for each Program container
	>> call stack:
	>>   Program::parse() called at SoapClient.qtest:355 (builtin function)
	>>   SoapClientTest::checkPreAndPostProcessing() called at SoapClient.qtest:339 (user function)
	>>   SoapClientTest::soapConnectionTest() called at /usr/share/qore-modules/0.9.0/QUnit.qm:450 (user function)
	>>   call_function_args() called at /usr/share/qore-modules/0.9.0/QUnit.qm:450 (builtin function)
-----
Ran 4 test cases, 3 succeeded, 1 error (66 assertions)
QUnit Test "XmlTest" v1.0
Segmentation fault (core dumped)

GlobalWeather test always fails

GlobalWeather depends on http://www.webservicex.com/globalweather.asmx which currently returns
{"code":"PAGE_NOT_FOUND","message":"Page not found"}
And thus the test fails.

I suggest disabling the test at least for now and maybe removing it later if the service doesn't get back up. Or maybe we can even remove it completely to get rid of a test dependent on an external resource.

the WSDL module does not implement default namespace handling for unprefixed elements or types

ex:

<schema targetNamespace="N1" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="N1">
      <element name="Root">
        <complexType>
          <sequence maxOccurs="1" minOccurs="1">
            <element name="ELEMENT" maxOccurs="unbounded" minOccurs="1">
              <complexType>
                <sequence>
                  <element name="COMPANY" maxOccurs="1" minOccurs="1" type="string"/>
                  <element name="RDA" maxOccurs="1" minOccurs="1" type="string"/>
                  <element name="STATUSRDA" maxOccurs="1" minOccurs="1" type="string"/>
                </sequence>
              </complexType>

makeXMLString() docs points to a non-existent replacement

makeXMLString(string key, hash h, *string encoding) is deprecated and recommends using get_xml_string() instead. However get_xml_string() does not exist. I believe make_xml() is the proper replacement.

BTW, the other version of makeXMLString(hash h, *string encoding) recommends make_xml() correctly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.