Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is quicker to query via XPath in MSXML, a nodes attribute or its child?

child MSXML Node query quicker xpath
0
Posted

What is quicker to query via XPath in MSXML, a nodes attribute or its child?

0

Hi Chris, This is purely an educated guess, but I would tend to think that an attribute would be quicker to query. Attribute names must be unique and may only contain simple string values while child objects can vary in type and are not necessarily unique. Back in the MSXML days, I would suspect that Attributes and other XmlNodes were probably stored separately and Attributes would likely be more efficient. I repeat: this is purely an educated guess!

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123