473,385 Members | 1,740 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 to add more variables into arraylist when read another xml fil

hello, let's say i have two xml file

1. myData1.xml

<?xml version="1.0" encoding="UTF-8"?>
<myRoot>
<myDataInput Number="1" Type="0" Status="Off" ObjName="test">
<Properties Attr="0" Number="1" ObjName="test">
<Description/>
</Properties>
</myDataInput>
<myDataInput Number="2" Type="2" Status="Off" ObjName="test1">
<Properties Attr="2" Number="2" ObjName="test2">
<Description/>
</Properties>
</myDataInput>
<myDataInput Number="3" Type="1" Status="On" ObjName="test2">
<Properties Attr="5" Number="3" ObjName="test2">
<Description/>
</Properties>
</myDataInput>
</myRoot>

2. myData2.xml

<?xml version="1.0" encoding="UTF-8"?>
<myRoot>
<myDataInput Number="4" Type="0" Status="On" ObjName="test4">
<Properties Attr="6" Number="4" ObjName="test4">
<Description/>
</Properties>
</myDataInput>
<myDataInput Number="5" Type="5" Status="Off" ObjName="test5">
<Properties Attr="8" Number="5" ObjName="test5">
<Description/>
</Properties>
</myDataInput>
<myDataInput Number="6" Type="1" Status="On" ObjName="test6">
<Properties Attr="6" Number="6" ObjName="test6">
<Description/>
</Properties>
</myDataInput>
</myRoot>

i want the program to read the value stored on these two xml files based on
what the user had select, i store the value in arraylist. how do i
store/appened more value into the arraylist when the user select another xml
file, for example by selecting myData1.xml file it read in the myDataInput's
number type and status then when the user use the combo drop down box and
select the myData2.xml it will read the same thing as myData1.xml and store
it to the same arraylist

i'm a little confused as how to appened data onto the arraylist by letting
user select to read the xml file.

thanks
Jul 24 '06 #1
0 1134

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

Similar topics

7
by: Alex Ting | last post by:
Hi Everybody, I have an issue about deleting an object from an arrayList. I've bounded a datagrid using this code where it will first run through all of the code in loadQuestions() and bind a...
4
by: Stuart | last post by:
I have a small class of data values made up of ints and bools totalling 25 bytes. Each of these 25 byte nodes is stored in another class as an ArrayList with a few more ints. Typically there are...
1
by: Jeremy S. | last post by:
I suspect I may be fundamentally misunderstanding how object variable references behave - and I'd sure appreciate some clarification - given my particular scenario. Summary: In an ASP.NET (1.1)...
1
by: leal ting | last post by:
a class inherited from ArrayList, is saved to ViewState, why the type of the object read from ViewSate is not the class, but the parent, ArrayList lealting@hotmail.com] the class inherited...
8
by: Patrick.O.Ige | last post by:
Hi All, I have a code below:- That Binds a DropDownList to a database using ArrayList. This code works well in ASP.NET webMatrix. But when i use it below in VS.NEt it gives me the error:-...
6
by: GrandpaB | last post by:
While writing this plea for help, I think I solved my dilemma, but I don't know why the problem solving statement is necessary. The inspiration for the statement came from an undocumented VB...
18
by: Sam | last post by:
Hi All I'm planing to write an application which allows users dynamically add their points (say you can add upto 30,000) and then draw xy graph. Should I use an array for my coordinate point...
0
by: Marcus Kwok | last post by:
I am having a weird problem with my DataGrid that is bound to an ArrayList. My situation is as follows: I have two DataGrids on a modal form. The top grid populates an ArrayList from a file,...
5
by: Kyote | last post by:
Sorry, but I have no idea how to phrase the subject better than that. I've come across this a few different times and decided to ask in case there's a way to do it. It would simplify things a bit...
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?
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,...

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.