473,394 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

XML Support in Whidbey

Gurus,

I was wondering if there is some new method to read XML in VS 2005
using C#.

Right now I am loading the xml in XMLDocument and looping through the
xml node, is there a better way in Whidbey to achieve the same and the
following.

1. Fast loading of XML from file.
2. Reading each node with Attributes if any.
3. Adding/Modifying any nodes.

Thanks for the help,
Shailendra

Nov 12 '05 #1
1 862
batham wrote:
I was wondering if there is some new method to read XML in VS 2005
using C#.

Right now I am loading the xml in XMLDocument and looping through the
xml node, is there a better way in Whidbey to achieve the same and the
following.

1. Fast loading of XML from file.
2. Reading each node with Attributes if any.
3. Adding/Modifying any nodes.


No, there is nothing new with that regard in VS 2005 (except that
XmlDopcument is a bit faster). But you don't need to, instead of
looping you can directly select all elements with attributes and loop
over that list.

XmlNodeList list = doc.SelectNodes("//*[@*]");
foreach (XmlElement elem in list)
{
...
}

--
Oleg Tkachenko [XML MVP, MCAD]
http://www.xmllab.net
http://blog.tkachenko.com
Nov 12 '05 #2

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

Similar topics

0
by: Tony Lavinio | last post by:
Dear comp.text.xml community, Microsoft recently announced that they are dropping XQuery from their next release of the .NET Framework, 2.0 (Whidbey). Since Microsoft ships .NET Framework only...
13
by: Andre | last post by:
Hi, I was wondering if anyone knows whether the JIT compiler supports SSE/SSE2 instructions? Thanks -Andre
1
by: Robert Hanson | last post by:
Hi All, Can anyone comment on whether of not Whidbey will provide better support for Extended MAPI so we can avoid the Outlook Warning Message? Thanks in advance, Bob Hanson Centare Group...
3
by: Doug Holland | last post by:
Hi There I just installed the PDC build of Whidbey onto Windows XP using the 'Web Developer' profile when I installed and was a little surprised to see that it is only ASP.NET projects that I...
1
by: localhost | last post by:
I have an IIS6 site that does not have an SSL certificate installed. I do not want to install a server SSL cert on the site. I want to protect certain .aspx pages based on the availibility of the...
4
by: Jim Adams | last post by:
Anyone have any insights into this? I'm planning an upgrade to an existing ASP.Net project to support multiple display languages (e.g. English, Spanish, ...). I'd like to use a solution that...
2
by: SuperRider | last post by:
Any chance MS will implement better UInt support in Whidbey? I'm tired of converting DWORDs into Int64s before I can use operators on them. C# does not suffer from this GLARING limitation. ...
0
by: spamfurnace | last post by:
Will Whidbey have the features, of a girl i'd like to meet? Will Whidbey be easy to talk to, and rub my tired feet? Will Whidbey bats it eyes at me, and whisper "Baby, your so sweet". Will...
5
by: rogsonl | last post by:
My computer was moved last week, and the company changed the network groups we work on. As a result, one of the main benefits from Whidbey (database connectivity) no longer works. Situation: 1....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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...
0
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
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...

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.