 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Timothy Murphy Guest
|
Posted: Sat Nov 27, 2004 3:57 pm Post subject: Looking for simple XML entry program |
|
|
I'm looking for a simple Java GUI
to enter data into an XML "database".
(The term database may be misleading, so this may be OT.)
The data I want to enter might be addresses into an address list.
(It isn't quite that but an address-book solution
would almost certainly work for me.)
I've looked at xindice and xeena.
I could'nt actually get xindice to work on my Fedora-3 system,
but that was almost certainly due to an error on my part.
However, it seemed like huge over-kill for my purposes anyway.
Xeena looked more like what I want,
but that too seemed excessively complex for my purposes.
(I haven't spent much time looking into it,
but will certainly do so if anyone tells me it is what I need.)
I wondered if anyone has any other suggestions?
Even a simple sample Java program with graphic input
would be a great help.
--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
|
|
| Back to top |
|
 |
Piet Guest
|
Posted: Sun Nov 28, 2004 4:14 pm Post subject: Re: Looking for simple XML entry program |
|
|
Timothy Murphy <tim (AT) birdsnest (DOT) maths.tcd.ie> wrote
| Quote: | I'm looking for a simple Java GUI
to enter data into an XML "database".
(The term database may be misleading, so this may be OT.)
You have an XML file which consists of a sequence of virtually |
identical element nodes, right?
| Quote: | The data I want to enter might be addresses into an address list.
"Might"? Will the program have to adaptable to other problems?
(It isn't quite that but an address-book solution
would almost certainly work for me.)
Xeena looked more like what I want,
but that too seemed excessively complex for my purposes.
I didn´t know that program before, but I can imagine why it looks too |
complex.
| Quote: | I wondered if anyone has any other suggestions?
I guess you are looking for something like the following: a program |
that takes an Xml file with a "database-like" structure, displays the
information in it (very likely in a JTable) and also has the
possibility to add new values ("datasets") via some kind of dialog
box. Each data set is represented by one xml element node. You will
need to tell the program which parts of the element node (e.g. which
attributes, which text node and so on) will contribute to a data set
and how these values are to be positioned in the JTable, in other
words you will have to map the information from your xml document into
a swing GUI. It is certainly possible to write such a program. Their
are two general options:
1. Hardwiring the structure of your XML document into the Java code.
But that means that the program will only work for one specific type
of xml file. This will very likely not justify the effort.
2. Write a program that has two "input sources": the file with your
data and a second file which tells the program how to read it. This is
the Xeena-approach. However, it will require a DTD to work, and I have
no idea how Xeena exactly does the "mapping" outlined above. I would
rather prefer to have a program which reads two xml files, one with
the pure data and the other one with a description of how to map the
data into the GUI. I don´t know whether such a program is out there.
It is clearly possible to write one, but it can be a tough job because
you will have to solve two problems:
First, you have to define a procedure how to transform the data from
your xml file into a formula/table. Write this procedure in xml. Then,
write a java program that is actually capable of carrying out the
procedure.
Sounds like something challenging. Solving this will probably very
teaching.
BW, Piet
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|