473,789 Members | 2,876 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XMLPlatformUtil s::Initialize question

Hi,

how can I determine, if the XMLPlatformUtil s::Initialize() was already
called
or not ?
There is no static method XMLPlatformUtil s::isInitialize d(). 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 XMLPlatformUtil s::fgTransServi ce is in any
case not NULL after Initialize() method was called, I use this behaviour and
always check for the public static member variable
XMLPlatformUtil s::fgTransServi ce.
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 3708

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

Similar topics

0
1808
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 symbol: xercesc_2_2::XMLUni::fgXercescDefaultLocale ld: 0711-317 ERROR: Undefined symbol: ..xercesc_2_2::XMLPlatformUtils::Initialize(char const *)
4
11554
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. thanks in advance, david ---------------
0
618
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 Xerces library. I am expecting to get an exception while calling DOMParser::parse method when the xml file is invalid, i.e. it doesn't conform to its schema, but I don't get any exception. What am I doing wrong? Following is snippet of my code:
1
2467
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 with the xalan samples). Is it a memory mishandling error ? I'm using Xerces 2.4 C++ / Xalan 1.7 C++ and VC6 to compile the code : #include <iostream>
19
2211
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 which they are declared and or defined. I'd like to know if there are any features of this code you believe represents bad programming technique. How would the feature be better implemented? /* * The Apache Software License, Version 1.1 *
2
1710
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 more Schema which is as follows: <ConfigurationFile Name="EventConfiguration" Id="ID_EVENTCONFIGURATION"> <Events Name="MouseEvents" Id="ID_MOUSEEVENTS">
2
3747
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 { XMLPlatformUtils::Initialize(); } catch (const XMLException& toCatch) { char* message = XMLString::transcode(toCatch.getMessage());
2
2250
by: Meal | last post by:
Hi, Look at following simple code block: --- XercesDOMParser *parser = 0; try { XMLPlatformUtils::Initialize() parser = new XercesDOMParser(); } catch (...)
5
2654
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 Redhat distribition, and are under /usr/lib64/httpd/.../xerces/ (Apache's stuff right?). Below is the (simple) source file I am trying to compile:
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10199
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10139
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9983
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9020
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7529
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4092
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3697
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.