473,385 Members | 1,814 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,385 software developers and data experts.

how do i pick up the values ?

Hi
I have this XML file, and i am not sure how do i read this xml file and read it to an arraylist, for which i use to fire some SQL statements.

I want to be able to pick only xml attributes, say, which belong to Section="two-4" and put them into an arraylist and similar for the rest of the Section attributes.

i had got the code below working, till the time, i had to change the xml file.

<cashier>
<tag Section="one-4" param1="1" param2="10100000" param3="1" />
<tag Section="two-4" param1="3 param2="asfd" param3="6/23/2003 08:00 AM" />
<tag Section="three-4" param1="2" param2="1" param3="CHECK/MO" param4="24" />
<tag Section="two-4" param1="3 param2="asfd" param3="6/23/2003 08:00 AM" />
</cashier>

Do While (reader.Read())

' I am not sure, how to pick up only two-4

If reader.Name.ToString = "two-4" Then

Response.Write("inside")

While (reader.MoveToNextAttribute())

workArray.Add(reader.Value)

End While

worknodes = worknodes + 1
Please Help.

Any help/suggestions/hints will be greatly appreciated.
Thank You
-- Sean
Nov 11 '05 #1
0 1578

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

Similar topics

3
by: RC | last post by:
Can anybody help on this question? When I select 3 values from the drop down list box, how can I insert into a table? Please help
2
by: Earl T | last post by:
Is it possible to have a web browser pick a color from an image on a web page? I am not interested in creating an image map but just reading the colors directly from the screen. Earl
5
by: Gary Mayor | last post by:
Hi, If I have the ' character within the javascript:pick command it doesn't work. Is there some sort of way of escaping these characters like in server side languages. function pick(symbol) {...
5
by: Paul Tomlinson | last post by:
How can I randomly pick either the value integer 5 or integer 8?? I don't want a value between 5 and 8 but either the values 5 or 8 randomly. Any ideas on how can I do this please?? MA
0
by: Sean | last post by:
Hi I have this XML file, and i am not sure how do i read this xml file and read it to an arraylist, for which i use to fire some SQL statements. I want to be able to pick only xml attributes,...
4
by: Jerry Camel | last post by:
I'm using a DHTML dialog to present a pick-list to a user. I've got the dialog working using some client side vbscript with a call to window.ShowModalDialog. I can see that the result is being...
10
by: Mark Winter | last post by:
Hello, I am wondering if someone could point me in the right direction to figure out how to create a dynamic form. I have been developing programs in perl and oracle and have recently switched...
0
by: U S Contractors Offering Service A Non-profit | last post by:
ALOT of them to pick from... Inbox Reply Craig Somerford to uscosoct24, Matthew, B-eing-I-nstru., Ed, me, New, mw, Natural, (bcc:USA), (bcc:Letters), (bcc:lvargas), (bcc:Le), (bcc:staff),...
4
by: jonceramic | last post by:
Hi guys, I have a user who wants to have a report that shows only the 10th value recorded by his equipment. (i.e. His equipment records temperature every 30 seconds, but he only wants to view...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.