Re: Strange interaction between Xerces and Xalan

2016-03-13 Thread Roger Leigh
On 21/01/2016 16:17, rle...@codelibre.net wrote: On 2016-01-21 15:27, rle...@codelibre.net wrote: My unit test here fails with "invalid document structure". However, the XML is well-formed UTF-8 with no BOM; it's been working fine for years. The difference between the exception being thrown o

Re: Xerces-C 2.7.0 Source Code needed

2016-07-13 Thread Roger Leigh
On 13/07/16 14:06, Gobbur, Pratima wrote: Hi, We are using Xerces-C 2.7.0 and would like to upgrade to the latest version 3.1.4 I need the source code for 2.7.0 to check if there was any customisation on our side. The archives on the website do not have anything prior to 2.8.0. I would be very

Performance problem with DOMNodeListImpl::item

2017-02-07 Thread Roger Leigh
Hi folks, When profiling an application to identify performance problems, I came across a worrying indication that there was a scalability problem internal to xerces-c. Further profiling showed exactly where this was (I've attached screenshots of the visualisation). The code here (https://

Re: Performance problem with DOMNodeListImpl::item

2017-02-07 Thread Roger Leigh
On 07/02/2017 20:17, Roger Leigh wrote: Hi folks, When profiling an application to identify performance problems, I came across a worrying indication that there was a scalability problem internal to xerces-c. Further profiling showed exactly where this was (I've attached screenshots o

Re: Performance problem with DOMNodeListImpl::item

2017-02-07 Thread Roger Leigh
On 07/02/2017 20:17, Roger Leigh wrote: Looking at the implementation in http://svn.apache.org/viewvc/xerces/c/branches/xerces-3.1/src/xercesc/dom/impl/DOMNodeListImpl.cpp?view=markup#l64 it looks like it's due to the indexed access being O(n) rather than O(1) [...] Questions: - Is t

Re: Is it still possible to build xerces-C++ 32 bit on Windows?

2018-01-03 Thread Roger Leigh
On 03/01/2018 13:02, Elia Tufarolo1 wrote: We would like to upgrade to the latest 3.2.0 version, but I found out that it's not possible to get a 32 bit Visual Studio solution through CMake. I'd like to know if it's still possible to build xerces-C++ at 32 bit, as it is a fundamental requirement

Re: How to build with XMLCh = wchar_t on Windows platform.

2018-01-23 Thread Roger Leigh
On 23/01/18 14:59, Mark Douglas wrote: Hi Roger, I think Microsoft have had wchar_t as a type way before char16_t was introduced (as far back as I can remember, which is getting shorter as I get older :)). At the time, Microsoft were well known for doing things the 'Microsoft way' and not fol

Re: AW: How can I use Xerces XML parser to validate GPX files?

2018-02-13 Thread Roger Leigh
On 13/02/18 18:26, Álvaro Cebrián Juan wrote: Hi Oliver and Roger, First of all, thank you very much for your help. I didn't know that the library was available in the Ubuntu repository. I have installed the libxerces-c-dev library (version is 3.1.3) with the package manager since I find it mor

Re: Problems building latest Xerces with Win10 and MSVC

2018-06-10 Thread Roger Leigh
On 10/06/2018 15:47, Day, Julian wrote: Hi, First off, I wanted to say thank you for all the hard work that's been put into Xerces-C++ over the years. I've been using it as a developer since 2006, both professionally and personally. At the moment, I'm trying to update my build environment to

Re: Problems building latest Xerces with Win10 and MSVC

2018-06-10 Thread Roger Leigh
On 10/06/2018 16:56, Roger Leigh wrote: Firstly, I think you have found a bug with a combination of configuration options we haven't explicitly tested with VS2017, namely: - icu - char16_t as XMLCh ICU is expecting wchar_t, and we need to explicitly reinterpret_cast from e.g. const cha

Re: unregular test failure after building with cmake for vs 2017

2018-09-05 Thread Roger Leigh
On 05/09/18 13:52, Werner Poschenrieder wrote: Hi, I have built xerces with cmake for windows using vs 2017 and following the instruction given at http://xerces.apache.org/xerces-c/build-3.html mkdir build cd build cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=D:\libs    \path

Re: xerces headers

2018-09-07 Thread Roger Leigh
On 07/09/18 12:24, Werner Poschenrieder wrote: Dear all, I have built xerves for c++ and would like to use it. Hence, I will require the xerces headers in order to import the library functions or compile them, if provided as templates in hpp. Is there an include directory within the source tr

Re: Xerces-C on VxWorks 7

2018-09-20 Thread Roger Leigh
On 20/09/18 14:39, duglew wrote: as anyone successfully built Xerces-C for VxWorks on a Windows 10 host? My specific issue is that when I run cmake it could not find the following ICU components: - uc - data Another engineer has successfully built Xerces-C on a Linux host. What did you see in

Re: What is a correct way to set a locale for xerces?

2019-01-11 Thread Roger Leigh
On 11/01/2019 10:23, Rudolfs Mazurs wrote: Hi, I have a service that is using xerces-c and has to be run stared under C locale for LANG and LC_*. I need xerces to be able to parse xml with UTF-8 characters, so I used this workaround: setlocale(LC_CTYPE,"en_US.UTF-8"); XMLPlatformUtils::Initializ

Re: Building Xerces without C++11

2019-05-09 Thread Roger Leigh
On 09/05/2019 11:25, João M. S. Silva wrote: Hi, I'm trying to build Xerces without C++11, so I'm using: ./configure --enable-xmlch-uint16_t --enable-mutexmgr-posix However, I still get this error when building my program with Xerces: "This file requires compiler and library support for the I

Re: v3.2.2 build failure on ASF Jenkins

2020-02-27 Thread Roger Leigh
Hi Eddie, configure did detect curl/curl.h, so should have been fine. Where exactly on this build slave is curl.h located?  Is it in some non-default location? There may possibly be a gap in the autotools support for that location. Kind regards, Roger On 27/02/2020 16:33, Eddie Epstein

Re: Xerces-c 3.2.2 performance degradation vs 3.1.4 (or 3.1.1)

2020-03-05 Thread Roger Leigh
Hi Marius, One change which was made was using RTTI. dynamic_cast is used in DOMCasts.hpp and DOMParentNode.cpp. These were needed for safety and correctness. It would be nice to avoid these if possible, but my understanding is that right now there isn't an alternative which can provide the

Re: Require info on validating XML using 2 xsd.

2020-04-14 Thread Roger Leigh
Hi Badari, Another alternative is to write your own EntityResolver which can map URIs to files or other data sources.  See https://gitlab.com/codelibre/ome/ome-model/-/blob/master/ome-xml/src/main/cpp/ome/xml/OMEEntityResolver.cpp as an example for loading the mappings from XML Catalog files.

Re: Xerces validating XML with extraneous characters

2021-09-19 Thread Roger Leigh
Hi Graham, Please could you attach a complete self-contained example which reproduces this behaviour? Thanks, Roger On 15/09/2021, 13:52, "BEEK Graham" wrote: Hi, I'm passing a buffer into a Xerces parser containing valid XML + characters off the start of another XML message. These

RE: Building dll for Win32

2022-07-15 Thread Roger Leigh
Hi Bjørn, There are several ways of doing this. Here's an example from within CLion: C:\Users\rleigh\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-1\221.5921.27\bin\cmake\win\bin\cmake.exe -G "Visual Studio 17 2022" -S C:\Users\rleigh\code\xerces-c -B C:\Users\rleigh\code\xerces-c\cmake-build-d

RE: Xerces-C++ and XQilla bad performance

2022-07-20 Thread Roger Leigh
Hi Davide, I would suggest running your program under valgrind with kcallgrind and profiling the execution. When you view the results, you should see where the hotspots are. Based upon my previous profiling experiments, I suspect you'll find that over 50% of the runtime is spent in the transc

RE: Xerces 4 and XML Schema 1.1 validation

2022-08-28 Thread Roger Leigh
Hi Robert, If you compiled without network access, then you'll need to be sure that all of the schema files are accessible, for example by implementing a custom EntityResolver. At a minimum, you'll want to provide your own schemas, plus any schemas they depend upon, e.g. XMLSchema. I would su

RE: Xerces 4 and XML Schema 1.1 validation

2022-08-29 Thread Roger Leigh
Hi Robert, I don't think you've overlooked anything here. Kind regards, Roger > -Original Message- > From: Robert Hairgrove > Sent: 29 August 2022 10:10 > To: c-...@xerces.apache.org; c-users@xerces.apache.org > Subject: Re: Xerces 4 and XML Schema 1.1 validation > > It looks like I wa