473,398 Members | 2,165 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,398 software developers and data experts.

read XML nodes

I have a XML file and i need to get the data of particular nodes
ex:
<myXML>
<car1 save=true>bmw</car1>
<car2 save=false>chevy</car2>
</myXML>

I need to read the node/attributes and if car1 save=true then display the
data for that. I can create the XML on the fly with my tag names but how can
i read the tags and attributes of the tag?
Nov 21 '05 #1
2 1021
Hi,

http://msdn.microsoft.com/library/de...mlfromfile.asp

Ken
-----------------
"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:2D**********************************@microsof t.com...
I have a XML file and i need to get the data of particular nodes
ex:
<myXML>
<car1 save=true>bmw</car1>
<car2 save=false>chevy</car2>
</myXML>

I need to read the node/attributes and if car1 save=true then display the
data for that. I can create the XML on the fly with my tag names but how can
i read the tags and attributes of the tag?

Nov 21 '05 #2
that works but how can i only show the data for the ones were save= true

"Ken Tucker [MVP]" wrote:
Hi,

http://msdn.microsoft.com/library/de...mlfromfile.asp

Ken
-----------------
"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:2D**********************************@microsof t.com...
I have a XML file and i need to get the data of particular nodes
ex:
<myXML>
<car1 save=true>bmw</car1>
<car2 save=false>chevy</car2>
</myXML>

I need to read the node/attributes and if car1 save=true then display the
data for that. I can create the XML on the fly with my tag names but how can
i read the tags and attributes of the tag?

Nov 21 '05 #3

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

Similar topics

1
by: bdinmstig | last post by:
I refined my attempt a little further, and the following code does seem to work, however it has 2 major problems: 1. Very limited support for XPath features Basic paths are supported for...
4
by: Vishal | last post by:
Hello, I can easily read an RSS sheet, but I am not able able to read a RDF sheet. Each time I try to read it returns me 0 nodes. Here is how I try it. Private Sub Page_Load(ByVal sender As...
2
by: Naga | last post by:
Hello, I want to read two XML documents and compare the nodes. And I want to Modify the second XML File by deleting the Node. Here in the Example bothe Files has MessageID as common and If i see...
4
by: Gerrit | last post by:
It must be simple, but I don't find how I can read a XmlFile in an ArrayList. Sample of my XmlFile: <?xml version="1.0" encoding="utf-8" ?> <Relations> <Person> <FirstName>John</FirstName>...
3
by: Alan T | last post by:
This is my xml file content: <?xml version="1.0"?> <server> <mssqlChicago> <host>www.chicagoserver.com</host> <user>managerA</user> <password>ceoman</password> <db>dbCEO</db> </mssqlChicago>
6
by: | last post by:
Hi, I'm steel trying to read and update my XML file with Visual Basic Express but i am unable to find the right way to read my xml file and update it if neccessary... Here is my problem :...
0
by: Sue | last post by:
Hello I need some help to read only partial nodes of a xml and store it as a dataset. In my example below, I need only the values within the nodes <WorkFlowStepHistoryin a dataset. I'm sure it...
0
by: Kavitha Sudhershan | last post by:
hi, i wanna read the node values from xml. As per my code i can read the node values in first child node and for the next node am not able to read the node values. pls help me. i'll paste the code...
6
by: =?Utf-8?B?VGFtbXkgTmVqYWRpYW4=?= | last post by:
Hi, can someone please let me know how I can read xml elements using object oriented program. I created a class to use the get and set properties however I dont know how I can pass the values from...
1
by: sal21 | last post by:
i use ths qery to read rset from sql Express and populate a treeview... But really the operation is very slow...!!!! this is a part of code: \\\\\\\\\\\\\\\\\\ 'CNSQL.Open "Provider=...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
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
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...

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.