473,804 Members | 3,031 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Parsing XML with namespaces in IE.

With the help of this newsgroup and Google I have got this code
working fully in Firefox and can alert the XML in IE but because IE
does not impliment the DOM "getElementsByT agNameNS()" function I
cannot read the individual rates from the Cube namespace.

Is there a wrapper or some other relatively simple method of getting
IE to do what in Firefox is straighforward?

Here is the code. Any help gratefully received.

var doc
function load() {
if (document.imple mentation &&
document.implem entation.create Document){
doc = document.implem entation.create Document("", "", null);
doc.load('CEBra tes.xml');
doc.onload = createTable;
}
else if (window.ActiveX Object){
var doc1 = new ActiveXObject(" Microsoft.XMLDO M");
function loadXML(xmlFile ){
doc1.async="fal se";
doc1.onreadysta techange=verify ;
doc1.load(xmlFi le);
doc=doc1.docume ntElement;
}
loadXML('CEBrat es.xml');
alert(doc.xml)
}
else {
alert('Your browser can\'t handle this script');
return;
}
}
function verify() {
if (doc1.readyStat e != 4 ){
return false;
}
}
function createTable() {
var cubes = doc.getElements ByTagNameNS('ht tp://www.ecb.int/
vocabulary/2002-08-01/eurofxref','Cub e');
var dateRate = cubes[1].getAttribute(' time');
var dateRateSplit = dateRate.split( '-');
for (var i = 2; i < cubes.length; i++){
var currency = cubes[i].getAttribute(' currency');
var rate = cubes[i].getAttribute(' rate');
rateObject[currency] = rate;
}
document.getEle mentById('boldS tuff').innerHTM L = dateRateSplit[2]
+ "." + dateRateSplit[1] + "." + dateRateSplit[0];
document.getEle mentById("curre ncy").value = "GBP";
getRates();
};
var rateObject = {};
function getRates() {
var curr= document.getEle mentById("curre ncy").value;
var currRate = rateObject[curr];
var currStatement= "1 EUR = " + currRate + " " + curr ;
document.getEle mentById("rate" ).value=currSta tement;
var currRev=1/currRate;
currRevFix=curr Rev.toFixed(5);
var currRevStatemen t= "1 " + curr +"= " + currRevFix + " EUR";
document.getEle mentById("rateR ev").value=curr RevStatement;
};
Nov 2 '08 #1
20 2932
On Nov 2, 3:10*pm, Steve <stephen.jo...@ googlemail.comw rote:
With the help of this newsgroup and Google I have got this code
working fully in Firefox and can alert the XML in IE but because IE
does not impliment the DOM "getElementsByT agNameNS()" function I
cannot read the individual rates from the Cube namespace.
At the present time, the MS XML DOM object does not support
getElementsByTa gNameNS method, but it is certainly capable of reading
data from elements in the document. See getElementsByTa gName,
selectNodes and selectSingleNod e.

http://msdn.microsoft.com/en-us/libr...28(VS.85).aspx
>
Is there a wrapper or some other relatively simple method of getting
IE to do what in Firefox is straighforward?

Here is the code. Any help gratefully received.

var doc
function load() {
* *if (document.imple mentation &&
document.implem entation.create Document){
Always use typeof to test host methods (e.g. should be "object",
"function" or "unknown".) Testing host methods by boolean type
conversion is known to cause exceptions in IE.
* * * * * * * * doc = document.implem entation.create Document("", "", null);
* * * * * * * * doc.load('CEBra tes.xml');
* * * * * * * * doc.onload = createTable;
* * * * }
* * * * else if (window.ActiveX Object){
I would test for more than "truthiness " here (should be a function.)
And you are going to need a try-catch clause to deal with cases where
ActiveX objects are disallowed, the XML DOM object is malfunctioning
or any of the other dozen things that can go wrong with the
instantiation.
* * * * * * * * var doc1 = new ActiveXObject(" Microsoft..XMLD OM");
* * * function loadXML(xmlFile ){
* * * * *doc1.async="fa lse";
Why are you setting a boolean property to a string? You are lucky the
object doesn't throw an exception. No way to know if a future Windows
update will break this.
* * * * *doc1.onreadyst atechange=verif y;
* * * * *doc1.load(xmlF ile);
* * * * *doc=doc1.docum entElement;
* * * }
* * * loadXML('CEBrat es.xml');
* * * alert(doc.xml)
Use window.alert.
* * * }
* * * else {
* * * * * * * * alert('Your browser can\'t handle this script');
Never do this. You are insulting the user's browser and you haven't
the slightest idea if their browser can handle your script. And
besides, how many of your users would know what you mean by "script?"
* * * * * * * * return;
* * *}}

function verify() {
* * if (doc1.readyStat e != 4 ){
* * * * return false;
* *}}
This function appears to be nonsense.

[snip]
Nov 3 '08 #2
On Nov 2, 11:30*pm, David Mark <dmark.cins...@ gmail.comwrote:
On Nov 2, 3:10*pm, Steve <stephen.jo...@ googlemail.comw rote:
With the help of this newsgroup and Google I have got this code
working fully in Firefox and can alert the XML in IE but because IE
does not impliment the DOM "getElementsByT agNameNS()" function I
cannot read the individual rates from the Cube namespace.

At the present time, the MS XML DOM object does not support
getElementsByTa gNameNS method, but it is certainly capable of reading
data from elements in the document. *See getElementsByTa gName,
selectNodes and selectSingleNod e.

http://msdn.microsoft.com/en-us/libr...28(VS.85).aspx
Is there a wrapper or some other relatively simple method of getting
IE to do what in Firefox is straighforward?
Here is the code. Any help gratefully received.
var doc
function load() {
* *if (document.imple mentation &&
document.implem entation.create Document){

Always use typeof to test host methods (e.g. should be "object",
"function" or "unknown".) *Testing host methods by boolean type
conversion is known to cause exceptions in IE.
And, of course, if it is "object" then also test if it is
"truthy" (else null passes.) Do *not* test the "truthiness " of
"unknown" types as they will always throw exceptions. It should also
be pointed out that "unknown" is not evidence of a method, only
evidence that something is there. Removing an element from the DOM
sets lots of properties (e.g. offsetParent) to "unknown" types.

Search the group for "isHostMeth od" for a safe wrapper. Pass it names
of host object properties that are known to be implemented as methods
as IE's "unknown" types make it an unreliable test otherwise (e.g.
offsetParent is not callable.)
Nov 3 '08 #3
This script is simply my first draft to get IE to read an XML file,
something that is straightforward with browsers that support the W3C
DOM Level 2 Core. The reason the code is messy is because I have had
to make lots of changes to get IE to even load the XML. This is why I
am asking the newsgroup for help. Thanks for answering but I'm afraid
the following response doesn't answer my question, which was "Is there
a wrapper or some other relatively simple method of getting IE to do
what in Firefox is straighforward? " I will reply to some parts of the
answer which are easy to answer and have nothing to do with the
question I asked.
On Nov 3, 5:30 am, David Mark <dmark.cins...@ gmail.comwrote:
On Nov 2, 3:10 pm, Steve <stephen.jo...@ googlemail.comw rote:
Is there a wrapper or some other relatively simple method of getting
IE to do what in Firefox is straighforward?
This is the question I would appreciate an answer to.
>
Here is the code. Any help gratefully received.
var doc
function load() {
if (document.imple mentation &&
document.implem entation.create Document){

Always use typeof to test host methods (e.g. should be "object",
"function" or "unknown".) Testing host methods by boolean type
conversion is known to cause exceptions in IE.
This is not causing an exception.
>
doc = document.implem entation.create Document("", "", null);
doc.load('CEBra tes.xml');
doc.onload = createTable;
}
else if (window.ActiveX Object){

I would test for more than "truthiness " here (should be a function.)
And you are going to need a try-catch clause to deal with cases where
ActiveX objects are disallowed, the XML DOM object is malfunctioning
or any of the other dozen things that can go wrong with the
instantiation.
OK
var doc1 = new ActiveXObject(" Microsoft.XMLDO M");
function loadXML(xmlFile ){
doc1.async="fal se";

Why are you setting a boolean property to a string? You are lucky the
object doesn't throw an exception. No way to know if a future Windows
update will break this.
Lucky?
doc1.onreadysta techange=verify ;
doc1.load(xmlFi le);
doc=doc1.docume ntElement;
}
loadXML('CEBrat es.xml');
alert(doc.xml)

Use window.alert.
Why? Alert is used everywhere even in the Rhino book.
}
else {
alert('Your browser can\'t handle this script');

Never do this. You are insulting the user's browser and you haven't
the slightest idea if their browser can handle your script. And
besides, how many of your users would know what you mean by "script?"
This is only there until the script is working. No-one will see it as
it is only on my localhost.
function verify() {
if (doc1.readyStat e != 4 ){
return false;
}}

This function appears to be nonsense.
This function is perfectly ok. Ready states are:
0 Object is not initialized
1 Loading object is loading data
2 Loaded object has loaded data
3 Data from object can be worked with
4 Object completely initialized

Regards, Steve.
Nov 3 '08 #4
On Nov 3, 4:59*am, Steve <stephen.jo...@ googlemail.comw rote:
This script is simply my first draft to get IE to read an XML file,
something that is straightforward with browsers that support the W3C
DOM Level 2 Core. The reason the code is messy is because I have had
to make lots of changes to get IE to even load the XML. This is why I
am asking the newsgroup for help. Thanks for answering but I'm afraid
the following response doesn't answer my question, which was "Is there
a wrapper or some other relatively simple method of getting IE to do
what in Firefox is straighforward? "
I answered that.
I will reply to some parts of the answer which are easy to answer and have nothing to do with the
question I asked.
Odd choice. It's your dime.
>
On Nov 3, 5:30 am, David Mark <dmark.cins...@ gmail.comwrote:
On Nov 2, 3:10 pm, Steve <stephen.jo...@ googlemail.comw rote:
Is there a wrapper or some other relatively simple method of getting
IE to do what in Firefox is straighforward?

This is the question I would appreciate an answer to.
I answered it.
>

Here is the code. Any help gratefully received.
var doc
function load() {
* *if (document.imple mentation &&
document.implem entation.create Document){
Always use typeof to test host methods (e.g. should be "object",
"function" or "unknown".) *Testing host methods by boolean type
conversion is known to cause exceptions in IE.

This is not causing an exception.
I didn't imply that it was. In fact, your test:

if (document.imple mentation && document.implem entation.create Document)
{

would seem to preclude IE from evaluating the createDocument method.
Just a general note of warning.
>

* * * * * * * * doc = document.implem entation.create Document("", "", null);
* * * * * * * * doc.load('CEBra tes.xml');
* * * * * * * * doc.onload = createTable;
* * * * }
* * * * else if (window.ActiveX Object){
I would test for more than "truthiness " here (should be a function.)
And you are going to need a try-catch clause to deal with cases where
ActiveX objects are disallowed, the XML DOM object is malfunctioning
or any of the other dozen things that can go wrong with the
instantiation.

OK
* * * * * * * * var doc1 = new ActiveXObject(" Microsoft.XMLDO M");
* * * function loadXML(xmlFile ){
* * * * *doc1.async="fa lse";
Why are you setting a boolean property to a string? *You are lucky the
object doesn't throw an exception. *No way to know if a future Windows
update will break this.

Lucky?
I doubt it.
>
* * * * *doc1.onreadyst atechange=verif y;
* * * * *doc1.load(xmlF ile);
* * * * *doc=doc1.docum entElement;
* * * }
* * * loadXML('CEBrat es.xml');
* * * alert(doc.xml)
Use window.alert.

Why? Alert is used everywhere even in the Rhino book.
I doubt that too. Perhaps alert is, but that doesn't make it right.
Why would you use an unqualified reference to that method? Seems
deliberately ambiguous.
>
* * * }
* * * else {
* * * * * * * * alert('Your browser can\'t handle this script');
Never do this. *You are insulting the user's browser and you haven't
the slightest idea if their browser can handle your script. *And
besides, how many of your users would know what you mean by "script?"

This is only there until the script is working. No-one will see it as
it is only on my localhost.
Good.
>
function verify() {
* * if (doc1.readyStat e != 4 ){
* * * * return false;
* *}}
This function appears to be nonsense.

This function is perfectly ok. Ready states are:
0 Object is not initialized
1 Loading object is loading data
2 Loaded object has loaded data
3 Data from object can be worked with
4 Object completely initialized
Despite that, the function is still nonsense in this context. As your
code is admittedly a mess, why not pare it down a bit by removing
obviously unneeded nonsense?
Nov 3 '08 #5
On Nov 3, 11:17 am, David Mark <dmark.cins...@ gmail.comwrote:
On Nov 3, 4:59 am, Steve <stephen.jo...@ googlemail.comw rote:
This script is simply my first draft to get IE to read an XML file,
something that is straightforward with browsers that support the W3C
DOM Level 2 Core. The reason the code is messy is because I have had
to make lots of changes to get IE to even load the XML. This is why I
am asking the newsgroup for help. Thanks for answering but I'm afraid
the following response doesn't answer my question, which was "Is there
a wrapper or some other relatively simple method of getting IE to do
what in Firefox is straighforward? "

I answered that.
Then please clarify what your answer is. If it is imply giving a link
to MS XML DOM Methods please be aware that that is not very helpful. I
would appreciate some help in learning how to use these methods to do
what getElementsByTa gNameNS() does.
On Nov 3, 5:30 am, David Mark <dmark.cins...@ gmail.comwrote:
On Nov 2, 3:10 pm, Steve <stephen.jo...@ googlemail.comw rote:
Is there a wrapper or some other relatively simple method of getting
IE to do what in Firefox is straighforward?
This is the question I would appreciate an answer to.

I answered it.
What is the answer? Simply giving a link to MS XML DOM Methods is not
very helpful.
doc1.onreadysta techange=verify ;
doc1.load(xmlFi le);
doc=doc1.docume ntElement;
}
loadXML('CEBrat es.xml');
alert(doc.xml)
Use window.alert.
Why? Alert is used everywhere even in the Rhino book.

I doubt that too. Perhaps alert is, but that doesn't make it right.
Why would you use an unqualified reference to that method? Seems
deliberately ambiguous.
I will start the next sentence without capitalizing the first letter
as it seems that script grammar is more important to you than english
grammar. alert is a recognized method of debugging scripts. Its only
there to see if the xml has been loaded.
function verify() {
if (doc1.readyStat e != 4 ){
return false;
}}
This function appears to be nonsense.
This function is perfectly ok. Ready states are:
0 Object is not initialized
1 Loading object is loading data
2 Loaded object has loaded data
3 Data from object can be worked with
4 Object completely initialized

Despite that, the function is still nonsense in this context. As your
code is admittedly a mess, why not pare it down a bit by removing
obviously unneeded nonsense?
It is not nonsense because it is necessary for the xml file to be
completely initialized before attempting to read it.

Nov 3 '08 #6
On Nov 3, 6:06*am, Steve <stephen.jo...@ googlemail.comw rote:
On Nov 3, 11:17 am, David Mark <dmark.cins...@ gmail.comwrote:
On Nov 3, 4:59 am, Steve <stephen.jo...@ googlemail.comw rote:
This script is simply my first draft to get IE to read an XML file,
something that is straightforward with browsers that support the W3C
DOM Level 2 Core. The reason the code is messy is because I have had
to make lots of changes to get IE to even load the XML. This is why I
am asking the newsgroup for help. Thanks for answering but I'm afraid
the following response doesn't answer my question, which was "Is there
a wrapper or some other relatively simple method of getting IE to do
what in Firefox is straighforward? "
I answered that.

Then please clarify what your answer is. If it is imply giving a link
to MS XML DOM Methods please be aware that that is not very helpful. I
would appreciate some help in learning how to use these methods to do
what getElementsByTa gNameNS() does.
Did you look at the examples in the documentation of any or all of the
three methods I mentioned? Is there something in particular that
confuses you?
>
On Nov 3, 5:30 am, David Mark <dmark.cins...@ gmail.comwrote:
On Nov 2, 3:10 pm, Steve <stephen.jo...@ googlemail.comw rote:
Is there a wrapper or some other relatively simple method of getting
IE to do what in Firefox is straighforward?
This is the question I would appreciate an answer to.
I answered it.

What is the answer? Simply giving a link to MS XML DOM Methods is not
very helpful.
See above.
>
* * * * *doc1.onreadyst atechange=verif y;
* * * * *doc1.load(xmlF ile);
* * * * *doc=doc1.docum entElement;
* * * }
* * * loadXML('CEBrat es.xml');
* * * alert(doc.xml)
Use window.alert.
Why? Alert is used everywhere even in the Rhino book.
I doubt that too. *Perhaps alert is, but that doesn't make it right.
Why would you use an unqualified reference to that method? *Seems
deliberately ambiguous.

I will start the next sentence without capitalizing the first letter
as it seems that script grammar is more important to you than english
"Script grammar?"
grammar. alert is a recognized method of debugging scripts. Its only
there to see if the xml has been loaded.
A "recognized method" is what exactly? An implied global method? It
is indeed recognized as that and that is not a good thing. And, of
course, you should not start an English sentence in lowercase.
>

function verify() {
* * if (doc1.readyStat e != 4 ){
* * * * return false;
* *}}
This function appears to be nonsense.
This function is perfectly ok. Ready states are:
0 Object is not initialized
1 Loading object is loading data
2 Loaded object has loaded data
3 Data from object can be worked with
4 Object completely initialized
Despite that, the function is still nonsense in this context. *As your
code is admittedly a mess, why not pare it down a bit by removing
obviously unneeded nonsense?

It is not nonsense because it is necessary for the xml file to be
completely initialized before attempting to read it.
You are completely mistaken.
Nov 3 '08 #7
David Mark wrote:
[...] Do *not* test the "truthiness " of "unknown" types as they will
always throw exceptions. It should also be pointed out that "unknown" is
not evidence of a method, only evidence that something is there.
Removing an element from the DOM sets lots of properties (e.g.
offsetParent) to "unknown" types.
Good remarks, thanks. I may have to refine my isMethod().
PointedEars, pressing 1, 4 ;-)
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Nov 3 '08 #8
Steve wrote:
With the help of this newsgroup and Google I have got this code
working fully in Firefox and can alert the XML in IE but because IE
does not impliment the DOM "getElementsByT agNameNS()" function I
cannot read the individual rates from the Cube namespace.
With IE you use MSXML for XML DOM, it implements methods selectNodes and
selectSingleNod e for DOM documents and elements (or even nodes in
general). With MSXML 3 and later you can pass an XPath 1.0 expression to
those two methods to select nodes:
var doc = new ActiveXObject(' Msxml2.DOMDocum ent.3.0');
doc.async = false;
if (doc.load('file .xml'))
{
// necessary for MSXML 3 first:
doc.setProperty ('SelectionLang uage', 'XPath');

// now bind prefixes to namespace URIs e.g.
doc.setProperty ('SelectionName spaces',
'xmlns:pf1="htt p://example.com/ns1" xmlns:pf2="http ://example.org/ns2"');

// and use those prefixes in XPath expresssions
var nodeList = doc.selectNodes ('pf1:foo/pf1:bar/pf2:baz');
// use nodeList here
}
--

Martin Honnen
http://JavaScript.FAQTs.com/
Nov 3 '08 #9
>On Nov 3, 5:30 am, David Mark <dmark.cins...@ gmail.comwrote:
On Nov 2, 3:10 pm, Steve <stephen.jo...@ googlemail.comw rote:
function verify() {
if (doc1.readyStat e != 4 ){
return false;
}}
This function appears to be nonsense.
This function is perfectly ok. Ready states are:
0 Object is not initialized
1 Loading object is loading data
2 Loaded object has loaded data
3 Data from object can be worked with
4 Object completely initialized
Despite that, the function is still nonsense in this context. As your
code is admittedly a mess, why not pare it down a bit by removing
obviously unneeded nonsense?
It is not nonsense because it is necessary for the xml file to be
completely initialized before attempting to read it.

You are completely mistaken.
I am asking for assistance here and you are only muddying the waters.
What am I mistaken about in your opinion? My understanding is that the
object (xml file) must be "ready state 4" before starting to be read.
You say that I am completely mistaken. Perhaps I am, but do you really
think this sort of reply is helpful?

Nov 3 '08 #10

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

Similar topics

19
2032
by: Alex Mizrahi | last post by:
Hello, All! i have 3mb long XML document with about 150000 lines (i think it has about 200000 elements there) which i want to parse to DOM to work with. first i thought there will be no problems, but there were.. first i tried Python.. there's special interest group that wants to "make Python become the premier language for XML processing" so i thought there will be no problems with this document.. i used xml.dom.minidom to parse it.....
5
6391
by: Mike McGavin | last post by:
Hi everyone. I've been trying for several hours now to get minidom to parse namespaces properly from my stream of XML, so that I can use DOM methods such as getElementsByTagNameNS(). For some reason, though, it just doesn't seem to want to split the prefixes from the rest of the tags when parsing. The minidom documentation at http://docs.python.org/lib/module-xml.dom.minidom.html implies that
1
1538
by: Alex | last post by:
Hello, I don't have sufficient experience with XSLT, and would really appreciate somebody's help in me giving ideas on solving a problem I have. Let's consider the following XML file: <RootNode> <RootNode:SubNode1> <RootNode:SubNode1:SubNode1>...</RootNode:SubNode1:SunNode1> </RootNode:SubNode1>
9
1896
by: Omkar Singh | last post by:
I try to parse a XML document containg some references using XmlDocument Class' method GetElementbyTagName. It just give the content between starting tagName and ending tagName but not all refernces used between starting tagName and ending tagName. Is there any way to achive this?
1
3076
by: christian.eickhoff | last post by:
Hi, I have a general question regarding the parsing of XSD files, referenced within the namespace using Apache Xerces 2.7.0 (CDT). My current c++ application can parse and validate an XML file and an XSD schema, both located on my harddisk, against each other without any problems. I can therefore also parse the schema file and access it the same way than a common xml file. The question now is whether Xerces provides the possibility to...
1
4792
by: snewman18 | last post by:
I'm trying to parse out some XML nodes with namespaces using BeautifulSoup. I can't seem to get the syntax correct. It doesn't like the colon in the tag name, and I'm not sure how to refer to that tag. I'm trying to get the attributes of this tag: <yweather:forecast day="Sun" date="18 Feb 2007" low="39" high="55" text="Partly Cloudy/Wind" code="24"> The only way I've been able to get it is by doing a findAll with
3
4604
by: =?Utf-8?B?RGFuYQ==?= | last post by:
I am re-posting this message after registering my posting alias. When I specify an end tag for the clear element of namespaces in my web.config file, the parser error "Unrecognized element 'add'" is reported. .... <pages> <namespaces> <clear></clear> <add namespace="System"/>
3
3426
by: Steve | last post by:
On Sep 22, 12:49 am, Peter Flynn <peter.n...@m.silmaril.iewrote: Thank you Peter, could you have a little more patience with me and explain how I can instruct my processor that gesmes equates to "http://www.gesmes.org/xml/2002-08-01" and that the default namespace (used for all element types that do not have a prefix) is "http:// www.ecb.int/vocabulary/2002-08-01/eurofxref" Regards, Steve.
0
1063
by: Gordon Fraser | last post by:
Hi, I'm trying to parse Python code to an AST, apply some changes to the AST and then compile and run the AST, but I'm running into problems when trying to evaluate/execute the resulting code object. It seems that the global namespace differs depending on where I call parse and eval/exec. The following code parses a file, compiles and then evaluates the AST. If I call Python directly on this code, then it works:
0
1349
by: Orestis Markou | last post by:
Have you tried passing in empty dicts for globals and locals? I think that the defaults will be the *current* globals and locals, and then of course your namespace is broken... On Tue, Oct 7, 2008 at 1:26 PM, Gordon Fraser <gfraser79@gmail.comwrote: -- orestis@orestis.gr
0
9705
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9575
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
10564
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10308
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
10073
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...
1
7609
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
5513
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4288
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
3
2981
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.