Hi,
I have a problem parsing XML file using XSLT stylesheet by using :
using System.Xml;
using System.Xml.XPat h;
using System.Xml.Xsl;
// load Xsl stylesheet
XslTransform myXslTrans = new XslTransform() ;
myXslTrans.Load (Server.MapPath ("stylesheet.xs lt"));
// load the Xml doc
XPathDocument myXPathDoc = new XPathDocument(S erver.MapPath(" file.xml"));
// write the transformed result
XmlTextWriter writer = new XmlTextWriter(S erver.MapPath(" result.xml"), null);
// do the actual transform of Xml
// pass XmlResolver to Transform() method
myXslTrans.Tran sform(myXPathDo c, null, writer, null);
writer.Close();
XML file
<?xml version="1.0" encoding="utf-8"?>
<Documents>
<Document chapter="1" title="title 1" href="file1.xml " filter="">
<Article title="1.1" info="sub" filter="food"/>
<Article title="1.2" info="main" filter="food"/>
</Document>
<Document chapter="2" title="title 2" href="file2.xml " filter="drink">
<Article title="2.1" info="sub" filter="drink"/>
<Article title="2.2" info="main" filter="food"/>
</Document>
</Documents>
XSLT stylesheet
<?xml version='1.0' encoding='UTF-8'?>
<xsl:styleshe et version="1.0"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
<!-- using muenchian method group by an attribute by asigning a unique
key to each element -->
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<!-- xsl:key name="by-proctype" match="Doc" use="@procedure type"/ -->
<!-- define info key -->
<xsl:key name="by-info" match="Article" use="@info"/>
<!-- put the filter string in a global parameter -->
<xsl:param name="filter" select="'food'"/>
<xsl:template match="Document s"><!-- @filter='' will be true if it is
there and empty or if it is not there at all) -->
<documents>
<xsl:for-each select="Documen t[@filter='' or
@filter=$filter]/Article[count(.|key('by-info',@info)[@filter='' or
@filter=$filter][1])=1]">
<document name="{@info}"> <xsl:copy-of
select="key('by-info',@info)[@filter=$filter]"/></document>
</xsl:for-each>
</documents>
</xsl:template>
</xsl:stylesheet>
Exception Details:
System.NullRefe renceException: Object reference not set to an instance of an
object."
Stack Trace:
[NullReferenceEx ception: Object reference not set to an instance of an
object.]
System.Xml.XPat h.FilterQuery.S etXsltContext(X sltContext input)
System.Xml.XPat h.FilterQuery.S etXsltContext(X sltContext input)
System.Xml.XPat h.MergeFilterQu ery.SetXsltCont ext(XsltContext input)
System.Xml.XPat h.OrQuery.SetXs ltContext(XsltC ontext context)
System.Xml.XPat h.MethodOperand .SetXsltContext (XsltContext context)
System.Xml.XPat h.LogicalExpr.S etXsltContext(X sltContext context)
System.Xml.XPat h.FilterQuery.S etXsltContext(X sltContext input)
System.Xml.XPat h.MergeFilterQu ery.SetXsltCont ext(XsltContext input)
System.Xml.XPat h.CompiledXpath Expr.SetContext (XmlNamespaceMa nager
nsManager)
System.Xml.Xsl. Processor.GetCo mpiledQuery(Int 32 key)
System.Xml.Xsl. Processor.Start Query(XPathNavi gator context, Int32 key)
System.Xml.Xsl. ForEachAction.E xecute(Processo r processor, ActionFrame
frame)
System.Xml.Xsl. ActionFrame.Exe cute(Processor processor)
System.Xml.Xsl. Processor.Execu te()
System.Xml.Xsl. XslTransform.Tr ansform(XPathNa vigator input,
XsltArgumentLis t args, XmlWriter output, XmlResolver resolver)
System.Xml.Xsl. XslTransform.Tr ansform(IXPathN avigable input,
XsltArgumentLis t args, XmlWriter output, XmlResolver resolver)
com.pop.mm_main _v2.Page_Load(O bject sender, EventArgs e) in
c:\inetpub\wwwr oot\file\index. aspx.cs:61
......
When I use XMLSpy to parse the XML using MSXML 4 processor it works perfect.
Saxon works perfectly as well. But when I try to parse it trough C#, I get
the error above.
It looks like I don't use MSXML 4 at all.
How do I make sure that MSXML 4 is used when I parse?
Thank you,
-Mike 7 3380
I have figured out that this is a parser issue.
My IE is using version 3.0 set as default in registry. http://www.perfectxml.com/articles/xml/XSLTInMSXML.asp
There must be a way to set this in a namespace so, IE does understand what
processor to use.
/Michael
"Michael" wrote: Hi,
I have a problem parsing XML file using XSLT stylesheet by using :
using System.Xml; using System.Xml.XPat h; using System.Xml.Xsl;
// load Xsl stylesheet XslTransform myXslTrans = new XslTransform() ; myXslTrans.Load (Server.MapPath ("stylesheet.xs lt"));
// load the Xml doc XPathDocument myXPathDoc = new XPathDocument(S erver.MapPath(" file.xml"));
// write the transformed result XmlTextWriter writer = new XmlTextWriter(S erver.MapPath(" result.xml"), null);
// do the actual transform of Xml // pass XmlResolver to Transform() method myXslTrans.Tran sform(myXPathDo c, null, writer, null); writer.Close();
XML file
<?xml version="1.0" encoding="utf-8"?>
<Documents> <Document chapter="1" title="title 1" href="file1.xml " filter=""> <Article title="1.1" info="sub" filter="food"/> <Article title="1.2" info="main" filter="food"/> </Document> <Document chapter="2" title="title 2" href="file2.xml " filter="drink"> <Article title="2.1" info="sub" filter="drink"/> <Article title="2.2" info="main" filter="food"/> </Document> </Documents>
XSLT stylesheet
<?xml version='1.0' encoding='UTF-8'?>
<xsl:styleshe et version="1.0" xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
<!-- using muenchian method group by an attribute by asigning a unique key to each element -->
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<!-- xsl:key name="by-proctype" match="Doc" use="@procedure type"/ -->
<!-- define info key --> <xsl:key name="by-info" match="Article" use="@info"/>
<!-- put the filter string in a global parameter --> <xsl:param name="filter" select="'food'"/>
<xsl:template match="Document s"><!-- @filter='' will be true if it is there and empty or if it is not there at all) -->
<documents> <xsl:for-each select="Documen t[@filter='' or @filter=$filter]/Article[count(.|key('by-info',@info)[@filter='' or @filter=$filter][1])=1]"> <document name="{@info}"> <xsl:copy-of select="key('by-info',@info)[@filter=$filter]"/></document> </xsl:for-each> </documents> </xsl:template>
</xsl:stylesheet>
Exception Details:
System.NullRefe renceException: Object reference not set to an instance of an object."
Stack Trace:
[NullReferenceEx ception: Object reference not set to an instance of an object.] System.Xml.XPat h.FilterQuery.S etXsltContext(X sltContext input) System.Xml.XPat h.FilterQuery.S etXsltContext(X sltContext input) System.Xml.XPat h.MergeFilterQu ery.SetXsltCont ext(XsltContext input) System.Xml.XPat h.OrQuery.SetXs ltContext(XsltC ontext context) System.Xml.XPat h.MethodOperand .SetXsltContext (XsltContext context) System.Xml.XPat h.LogicalExpr.S etXsltContext(X sltContext context) System.Xml.XPat h.FilterQuery.S etXsltContext(X sltContext input) System.Xml.XPat h.MergeFilterQu ery.SetXsltCont ext(XsltContext input) System.Xml.XPat h.CompiledXpath Expr.SetContext (XmlNamespaceMa nager nsManager) System.Xml.Xsl. Processor.GetCo mpiledQuery(Int 32 key) System.Xml.Xsl. Processor.Start Query(XPathNavi gator context, Int32 key) System.Xml.Xsl. ForEachAction.E xecute(Processo r processor, ActionFrame frame) System.Xml.Xsl. ActionFrame.Exe cute(Processor processor) System.Xml.Xsl. Processor.Execu te() System.Xml.Xsl. XslTransform.Tr ansform(XPathNa vigator input, XsltArgumentLis t args, XmlWriter output, XmlResolver resolver) System.Xml.Xsl. XslTransform.Tr ansform(IXPathN avigable input, XsltArgumentLis t args, XmlWriter output, XmlResolver resolver) com.pop.mm_main _v2.Page_Load(O bject sender, EventArgs e) in c:\inetpub\wwwr oot\file\index. aspx.cs:61 .....
When I use XMLSpy to parse the XML using MSXML 4 processor it works perfect. Saxon works perfectly as well. But when I try to parse it trough C#, I get the error above.
It looks like I don't use MSXML 4 at all.
How do I make sure that MSXML 4 is used when I parse? Thank you,
-Mike
As a workaround I used generate-id() function in Muenchian method instead of
count():
Something with numeric predicate I think.
<xsl:for-each select="Documen t[@filter='' or
@filter=$filter]/Article[generate-id()=generate-id(key('by-info',@info)[@filter='' or @filter=$filter])]">
Now it works as it should.
--Michael
"Michael" wrote: I have figured out that this is a parser issue. My IE is using version 3.0 set as default in registry.
http://www.perfectxml.com/articles/xml/XSLTInMSXML.asp
There must be a way to set this in a namespace so, IE does understand what processor to use.
/Michael
"Michael" wrote:
Hi,
I have a problem parsing XML file using XSLT stylesheet by using :
using System.Xml; using System.Xml.XPat h; using System.Xml.Xsl;
// load Xsl stylesheet XslTransform myXslTrans = new XslTransform() ; myXslTrans.Load (Server.MapPath ("stylesheet.xs lt"));
// load the Xml doc XPathDocument myXPathDoc = new XPathDocument(S erver.MapPath(" file.xml"));
// write the transformed result XmlTextWriter writer = new XmlTextWriter(S erver.MapPath(" result.xml"), null);
// do the actual transform of Xml // pass XmlResolver to Transform() method myXslTrans.Tran sform(myXPathDo c, null, writer, null); writer.Close();
XML file
<?xml version="1.0" encoding="utf-8"?>
<Documents> <Document chapter="1" title="title 1" href="file1.xml " filter=""> <Article title="1.1" info="sub" filter="food"/> <Article title="1.2" info="main" filter="food"/> </Document> <Document chapter="2" title="title 2" href="file2.xml " filter="drink"> <Article title="2.1" info="sub" filter="drink"/> <Article title="2.2" info="main" filter="food"/> </Document> </Documents>
XSLT stylesheet
<?xml version='1.0' encoding='UTF-8'?>
<xsl:styleshe et version="1.0" xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
<!-- using muenchian method group by an attribute by asigning a unique key to each element -->
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<!-- xsl:key name="by-proctype" match="Doc" use="@procedure type"/ -->
<!-- define info key --> <xsl:key name="by-info" match="Article" use="@info"/>
<!-- put the filter string in a global parameter --> <xsl:param name="filter" select="'food'"/>
<xsl:template match="Document s"><!-- @filter='' will be true if it is there and empty or if it is not there at all) -->
<documents> <xsl:for-each select="Documen t[@filter='' or @filter=$filter]/Article[count(.|key('by-info',@info)[@filter='' or @filter=$filter][1])=1]"> <document name="{@info}"> <xsl:copy-of select="key('by-info',@info)[@filter=$filter]"/></document> </xsl:for-each> </documents> </xsl:template>
</xsl:stylesheet>
Exception Details:
System.NullRefe renceException: Object reference not set to an instance of an object."
Stack Trace:
[NullReferenceEx ception: Object reference not set to an instance of an object.] System.Xml.XPat h.FilterQuery.S etXsltContext(X sltContext input) System.Xml.XPat h.FilterQuery.S etXsltContext(X sltContext input) System.Xml.XPat h.MergeFilterQu ery.SetXsltCont ext(XsltContext input) System.Xml.XPat h.OrQuery.SetXs ltContext(XsltC ontext context) System.Xml.XPat h.MethodOperand .SetXsltContext (XsltContext context) System.Xml.XPat h.LogicalExpr.S etXsltContext(X sltContext context) System.Xml.XPat h.FilterQuery.S etXsltContext(X sltContext input) System.Xml.XPat h.MergeFilterQu ery.SetXsltCont ext(XsltContext input) System.Xml.XPat h.CompiledXpath Expr.SetContext (XmlNamespaceMa nager nsManager) System.Xml.Xsl. Processor.GetCo mpiledQuery(Int 32 key) System.Xml.Xsl. Processor.Start Query(XPathNavi gator context, Int32 key) System.Xml.Xsl. ForEachAction.E xecute(Processo r processor, ActionFrame frame) System.Xml.Xsl. ActionFrame.Exe cute(Processor processor) System.Xml.Xsl. Processor.Execu te() System.Xml.Xsl. XslTransform.Tr ansform(XPathNa vigator input, XsltArgumentLis t args, XmlWriter output, XmlResolver resolver) System.Xml.Xsl. XslTransform.Tr ansform(IXPathN avigable input, XsltArgumentLis t args, XmlWriter output, XmlResolver resolver) com.pop.mm_main _v2.Page_Load(O bject sender, EventArgs e) in c:\inetpub\wwwr oot\file\index. aspx.cs:61 .....
When I use XMLSpy to parse the XML using MSXML 4 processor it works perfect. Saxon works perfectly as well. But when I try to parse it trough C#, I get the error above.
It looks like I don't use MSXML 4 at all.
How do I make sure that MSXML 4 is used when I parse? Thank you,
-Mike
Hello,
This looks like a Bug! How can this be reported to Microsoft to appropriate
developer team?
Something with numeric predicate I think.
As a workaround you can use generate-id() function in Muenchian method
instead of count():
<xsl:for-each select="Documen t[@filter='' or
@filter=$filter]/Article[generate-id()=generate-id(key('by-info',@info)[@filter='' or @filter=$filter])]">
-Michael
"Michael" wrote: I have figured out that this is a parser issue. My IE is using version 3.0 set as default in registry.
http://www.perfectxml.com/articles/xml/XSLTInMSXML.asp
There must be a way to set this in a namespace so, IE does understand what processor to use.
/Michael
"Michael" wrote:
Hi,
I have a problem parsing XML file using XSLT stylesheet by using :
using System.Xml; using System.Xml.XPat h; using System.Xml.Xsl;
// load Xsl stylesheet XslTransform myXslTrans = new XslTransform() ; myXslTrans.Load (Server.MapPath ("stylesheet.xs lt"));
// load the Xml doc XPathDocument myXPathDoc = new XPathDocument(S erver.MapPath(" file.xml"));
// write the transformed result XmlTextWriter writer = new XmlTextWriter(S erver.MapPath(" result.xml"), null);
// do the actual transform of Xml // pass XmlResolver to Transform() method myXslTrans.Tran sform(myXPathDo c, null, writer, null); writer.Close();
XML file
<?xml version="1.0" encoding="utf-8"?>
<Documents> <Document chapter="1" title="title 1" href="file1.xml " filter=""> <Article title="1.1" info="sub" filter="food"/> <Article title="1.2" info="main" filter="food"/> </Document> <Document chapter="2" title="title 2" href="file2.xml " filter="drink"> <Article title="2.1" info="sub" filter="drink"/> <Article title="2.2" info="main" filter="food"/> </Document> </Documents>
XSLT stylesheet
<?xml version='1.0' encoding='UTF-8'?>
<xsl:styleshe et version="1.0" xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
<!-- using muenchian method group by an attribute by asigning a unique key to each element -->
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<!-- xsl:key name="by-proctype" match="Doc" use="@procedure type"/ -->
<!-- define info key --> <xsl:key name="by-info" match="Article" use="@info"/>
<!-- put the filter string in a global parameter --> <xsl:param name="filter" select="'food'"/>
<xsl:template match="Document s"><!-- @filter='' will be true if it is there and empty or if it is not there at all) -->
<documents> <xsl:for-each select="Documen t[@filter='' or @filter=$filter]/Article[count(.|key('by-info',@info)[@filter='' or @filter=$filter][1])=1]"> <document name="{@info}"> <xsl:copy-of select="key('by-info',@info)[@filter=$filter]"/></document> </xsl:for-each> </documents> </xsl:template>
</xsl:stylesheet>
Exception Details:
System.NullRefe renceException: Object reference not set to an instance of an object."
Stack Trace:
[NullReferenceEx ception: Object reference not set to an instance of an object.] System.Xml.XPat h.FilterQuery.S etXsltContext(X sltContext input) System.Xml.XPat h.FilterQuery.S etXsltContext(X sltContext input) System.Xml.XPat h.MergeFilterQu ery.SetXsltCont ext(XsltContext input) System.Xml.XPat h.OrQuery.SetXs ltContext(XsltC ontext context) System.Xml.XPat h.MethodOperand .SetXsltContext (XsltContext context) System.Xml.XPat h.LogicalExpr.S etXsltContext(X sltContext context) System.Xml.XPat h.FilterQuery.S etXsltContext(X sltContext input) System.Xml.XPat h.MergeFilterQu ery.SetXsltCont ext(XsltContext input) System.Xml.XPat h.CompiledXpath Expr.SetContext (XmlNamespaceMa nager nsManager) System.Xml.Xsl. Processor.GetCo mpiledQuery(Int 32 key) System.Xml.Xsl. Processor.Start Query(XPathNavi gator context, Int32 key) System.Xml.Xsl. ForEachAction.E xecute(Processo r processor, ActionFrame frame) System.Xml.Xsl. ActionFrame.Exe cute(Processor processor) System.Xml.Xsl. Processor.Execu te() System.Xml.Xsl. XslTransform.Tr ansform(XPathNa vigator input, XsltArgumentLis t args, XmlWriter output, XmlResolver resolver) System.Xml.Xsl. XslTransform.Tr ansform(IXPathN avigable input, XsltArgumentLis t args, XmlWriter output, XmlResolver resolver) com.pop.mm_main _v2.Page_Load(O bject sender, EventArgs e) in c:\inetpub\wwwr oot\file\index. aspx.cs:61 .....
When I use XMLSpy to parse the XML using MSXML 4 processor it works perfect. Saxon works perfectly as well. But when I try to parse it trough C#, I get the error above.
It looks like I don't use MSXML 4 at all.
How do I make sure that MSXML 4 is used when I parse? Thank you,
-Mike
Michael wrote: I have figured out that this is a parser issue. My IE is using version 3.0 set as default in registry.
IE always using MSXML3. The on;y way to use MSXML4 is scripting.
--
Oleg Tkachenko [XML MVP] http://blog.tkachenko.com
I do not manage to add new message to the list (I must choose a discussion
group but the list is empty !) so I put my post hier as reply... It's also a
kind of MSXSL bug.
I'd just like to spécify a probable "exeption" in SelectSingleNod e() method.
The spec says :
"var objXMLDOMNode = oXMLDOMNode.sel ectSingleNode(q ueryString);
Where queryString is a string specifying an XPath expression."
But if you for example aim at matching the SECOND <foo> node of a context
node, you must write selectSingleNod e(foo[1])
the FIRST one is selectSingleNod e(foo[0])
Normaly, Xpath index position start at 1 (foo[1] is the short for
foo[position()=1]) :
<xsl:value-of select="foo[1]"> will match the FISRT foo node in XSL.
About the SelectSingleNod e() spec queryString is not a real XPath
expression, because of this exeption (maybe there are others ?), isn't it ?
I did not manage to add a new message (I shall choose a discussion group but
the list is empty !) so I send it here as reply since it's also a kind of
Msxsml bug...
I'd just like to spécify a probable "exeption" in SelectSingleNod e() method.
The spec says :
"var objXMLDOMNode = oXMLDOMNode.sel ectSingleNode(q ueryString);
Where queryString is a string specifying an XPath expression."
But if you for example aim at matching the SECOND <foo> node of a context
node, you must write selectSingleNod e(foo[1])
the FIRST one is selectSingleNod e(foo[0])
Normaly, Xpath index position start at 1 (foo[1] is the short for
foo[position()=1]) :
<xsl:value-of select="foo[1]"> will match the FISRT foo node in XSL.
About the SelectSingleNod e() spec queryString is not a real XPath
expression, because of this exeption (maybe there are others ?), isn't it ?
mattmat wrote: I'd just like to spécify a probable "exeption" in SelectSingleNod e() method. The spec says : "var objXMLDOMNode = oXMLDOMNode.sel ectSingleNode(q ueryString); Where queryString is a string specifying an XPath expression."
But if you for example aim at matching the SECOND <foo> node of a context node, you must write selectSingleNod e(foo[1]) the FIRST one is selectSingleNod e(foo[0])
Well, chances are you are using MSXML3, where selection language by
default isn't XPath, but some obsoleted language called XSL Pattern. I
have no idea which number position starts in that language.
Set XPath as selection language using SelectionLangua ge property.
PS. And it has nothing to do with .NET of course.
--
Oleg Tkachenko [XML MVP] http://blog.tkachenko.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Alastair Cameron |
last post by:
I have a VB (VB6, not .NET) application that reads an XML file (using MSXML
v3.2 parser); the XML file contains a reference to an external DTD.
The DTD has numerous enumerated attribute declarations like so:
<!ATTLIST MyElement
MyAttribute (One | Two | Three) "One"
>
The VB code needs to generate dynamic pick-list for all the attributes that
|
by: OKI |
last post by:
Hi.
I´ve made a XML parser using MSXML2.LIB in a computer. When i´ve tried
to run it in another one like that:
HRESULT hr = CoCreateInstance(CLSID_DOMDocument, NULL,
CLSCTX_INPROC_SERVER, IID_IXMLDOMDocument, (void **)&(this->xmlDoc));
the result is:
|
by: Bill Cunningham |
last post by:
For some reason I can't find on my win98 IE5 or 5.5 the msxml2.5 parser
that's supposed to be there. Does anyone know where I can get one?
Also if I was running my linux system. Where could I get good xml parser
support. Say if I was using opera or gnome?
Bill
|
by: Olav |
last post by:
I have an element that looks like this:
<PhoneNumber><NUMBER></PhoneNumber>
I would like to have the content returned as "<NUMBER>".
Not only don't I get the character references resolved, but also what is
only one Text-node child of the element-node becomes several nodes (When I
have character references)
|
by: Mark Miller |
last post by:
QUESTION:
Does anyone know how I can use v2.6 of the MSXML parser with .NET?
BACKGROUND:
I "Web to Print" process that allows our clients (newspapers) to export
their data and pass it thru a custom Xslt stylesheet we have created for
their print system. The idea of the whole process for them is they request
the export and then they get a text file they can import (copy / paste) into
their system with all their styles and layout...
| |
by: JohnArgost |
last post by:
I try to learn how to parser XML files. Should I learn MSXML or .NET
(system.xml) or both. Is MSXML an old technology which is replaced by .NET?
Thanks in advance.
|
by: K |
last post by:
I've an XML file in UTF-8.
It contains some chinese characters ( both simplified chinese and
traditional chinese).
In loading the XML file with MSXML parser, I used the below code to retrieve
the data in a node. The CString was then display in CListCtrl. For the
traditional chinese characters, they were shown correctly, but for
simplified characters, I encounted many "?", but some characters were
correct.
|
by: yawnmoth |
last post by:
<http://www.quirksmode.org/book/printable/xmlhttp.txtshows two
alternatives to Microsoft.XMLHTTP - Msxml2.XMLHTTP and Msxml3.XMLHTTP.
If my understanding is correct, the different numbers refer to the
version of Microsoft's XML parser and that Microsoft.XMLHTTP refers to
the latest installed version.
This makes me wonder why sites like
<http://developer.apple.com/internet/webcontent/xmlhttpreq.htmlopt to
use Msxml2.XMLHTTP, first, and...
|
by: JJA |
last post by:
I'm working on part of a site (see http://gis.cbmiweb.com/MDWmaps/default.asp)
where I thought everything was working fine for IE6, IE7 and Firefox.
Recently, I discovered this failed for an IE7 user. The fix for that
situation was to install the MSXML6.0 Parser (I would have thought
that IE7 should have ensured the corresponding presence of that
component).
Q. Is there a simple way to test for the absence of this component?
I'm...
|
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...
|
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...
| |
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...
|
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,...
|
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...
|
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...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
| |
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...
| |