473,473 Members | 1,552 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Filling Java Vector using XML Config file

Hi All,

I am writing a Java code that uses a XML Config file to configure
itself. Sample of the XML file has shown below. I want to have a peace
of java code to reads that config file and import all the data to a
class structure that I have designed before. In this case I will have
a class name AppGroup and the whole config file will be stored in
array of AppGroup objects. What is the best was of doing such a thing.
I’ve already looked at Castor but seem to complicate to me.
Thanks in advance for your help.
<?xml version="1.0"?>

<FConfig>
<ExtraConf>
<Name>TEST</Name>
<Timeout>100</Timeout>
</ExtraConf>
<AppGroup>
<Other>
<AppName>BILL5</AppName>
<FileSequenceIn>aaabbb</FileSequenceIn>
<TransferAlarm>transAlarmCall</TransferAlarm>
</Other>
<TransConf>
<Direction>INPUT</Direction>
<SourceDir>/client/home/ttt</SourceDir>
<FilePattern>aaavvv</FilePattern>
<TargetDir>/home/rrr</TargetDir>
<StateFile>auditState</StateFile>
</TransConf>
<TransConf>
<Direction>OUTPUT</Direction>
<SourceDir>/client/home/ggg</SourceDir>
<FilePattern>aaaeee</FilePattern>
<TargetDir>/home/yyy</TargetDir>
<StateFile>auditState2</StateFile>
</TransConf>
</AppGroup>
<AppGroup>
………………………..
</AppGroup>
Jul 20 '05 #1
0 2086

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

Similar topics

73
by: RobertMaas | last post by:
After many years of using LISP, I'm taking a class in Java and finding the two roughly comparable in some ways and very different in other ways. Each has a decent size library of useful utilities...
10
by: Alex Gerdemann | last post by:
Hello, I have spent a bunch of time converting a Java program I wrote to C++ in order to improve performance, and have found that it is not necessarily faster. Specifically, I'm writing a...
7
by: Steve M | last post by:
I'm trying to invoke a Java command-line program from my Python program on Windows XP. I cannot get the paths in one of the arguments to work right. The instructions for the program describe the...
1
by: Ray Mitchell | last post by:
Hello, I have two Java applications that exchange serialized objects. Although I would like to ultimately convert both to C# it's a pretty monumental task, especially for someone just learning...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
8
by: ajos | last post by:
hi frnds, im trying to convert my servlets database configuration from ms access to mysql database.however im getting some error like no driver found exception. to verify this error ive...
4
by: BibhuAshish | last post by:
Hi, I wanted to delete a line from xml file which i did it. But after deletion of that line there is a blank space. Again if i am adding another line by using java that blank line remains as...
2
by: yeshello54 | last post by:
so here is my problem...in a contact manager i am trying to complete i have ran into an error..we have lots of code because we have some from class which we can use...anyways i keep getting an error...
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...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.