473,468 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

XMLPlatformUtils::Initialize question

Hi,

how can I determine, if the XMLPlatformUtils::Initialize() was already
called
or not ?
There is no static method XMLPlatformUtils::isInitialized(). Perhaps this
would be a nice feature in the next Xerces Release ?
For now, I have a little workaround. Because it is really necessary that
a TransService is loaded and XMLPlatformUtils::fgTransService is in any
case not NULL after Initialize() method was called, I use this behaviour and
always check for the public static member variable
XMLPlatformUtils::fgTransService.
If it's NULL then the the PlatformUtils was not initialized and if it's not
NULL,
then I think I can be sure, that the Initialize() was called.

Is this workaround okay or is there a nicer way ?

Best Regards,
Mario S.
Jul 20 '05 #1
0 3668

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Reinhard Schauer | last post by:
Hi all, I try to build a program on AIX 5.2 with gcc 3.3 using the xerces-c2_2 parser. At the end of the build process I always get the following error messsage: ld: 0711-317 ERROR: Undefined...
4
by: David | last post by:
Hello , I'm trying to parse an XML document a get spicific tags such as email in the code below. I'm using xerces 2.4. However I don't manage to get the value for the email. Can anybody help. ...
0
by: Vikas | last post by:
Sorry if I posted it twice. I posted the same question yesterday but I don't see it yet. Following is my question... I am trying to do validation of xml files against their schema using the...
1
by: Jo | last post by:
Hello, What am I doing wrong ? I always end up with an exception regardless of the provided XML/XSLT (although to ensure the correctness of the provide input files I've used the ones which comes...
19
by: Steven T. Hatton | last post by:
The short sample program listed below has some features that I find to be bad style. In particular, they fail to communicate the connection between names used in this program and the location in...
2
by: hepsibasushmap | last post by:
Hi all, I had downloaded the Xerces C++ DOMLibrary and had also prepared a parser which reads a file which is similar to our Menu. Now in the similarway iam trying to prepare a parser for one...
2
by: cis.imendel | last post by:
I my code 2 different threads at the same time called xercesc code. T1: new SAXParser(); T2: XMLPlatformUtils::Initialize(); They both called a function with this code: { try {...
2
by: Meal | last post by:
Hi, Look at following simple code block: --- XercesDOMParser *parser = 0; try { XMLPlatformUtils::Initialize() parser = new XercesDOMParser(); } catch (...)
5
by: mearvk | last post by:
Hello, Let me preface this post by saying I'm new to C/C++ and to gcc/g++. Now then, I'm trying to get Xerces (C++) working on a (64-bit) redhat machine. The Xerces binaries were part of the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.