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

newbee: using XML to define how to enter data?

Hi,

we need to enter lots of data which are basicly descriptions of pc
hardware configuration like this:

Mainboard:
vendor=...
#of PCI slots=3
slot 1
graphic adapter
vendor=...
slot 2
...
...

What I understand from XML & Co. is that an XML admin could define
valid data structures (like: every mainboard must have RAM, but the
number of RAM modules may be >1 etc.) with an XML editor.

My question is: if there is an editor for the user to enter data (like
into fields of a database) who does not know anything about XML. This
editor should on the one hand take the admin's definitions of valid
data from the XML structure, and on the other hand allow the user to
enter data *only* the way it was defined before.

So, I think we don't simply need an XML editor. Also, it would not be
enough to let the user enter data freely in a text editor and *later*
parse it against errors -- the editor should visually show to the user
what data is required, what is optional etc.

Felix

Mar 8 '06 #1
5 2048
fk****@googlemail.com wrote:
we need to enter lots of data which are basicly descriptions of pc
hardware configuration like this:

Mainboard:
vendor=...
#of PCI slots=3
slot 1
graphic adapter
vendor=...
slot 2
...
...

What I understand from XML & Co. is that an XML admin could define
valid data structures (like: every mainboard must have RAM, but the
number of RAM modules may be >1 etc.) with an XML editor.
Broadly speaking, yes. Whether it's an appropriate way to do data
entry is up to the application designer. XML is designed for text
data identity, storage, and transfer. Doing data entry with a
regular XML editor is probably not a good way to go.
My question is: if there is an editor for the user to enter data (like
into fields of a database) who does not know anything about XML.
Yes, although it probably wouldn't be called an editor, more like a
data-entry front-end application. Editors tend to expose the structure
of XML fairly explicitly, which you don't want for novice use.
This
editor should on the one hand take the admin's definitions of valid
data from the XML structure, and on the other hand allow the user to
enter data *only* the way it was defined before.

So, I think we don't simply need an XML editor.


Right. You want a data-entry tool that saves the data as XML.
If indeed you want XML at all at this stage. A database with a
web front-end might be simpler.

///Peter
--
XML FAQ: http://xml.silmaril.ie/

Mar 8 '06 #2

Peter Flynn wrote:
fk****@googlemail.com wrote:


[...]
This
editor should on the one hand take the admin's definitions of valid
data from the XML structure, and on the other hand allow the user to
enter data *only* the way it was defined before.

So, I think we don't simply need an XML editor.


Right. You want a data-entry tool that saves the data as XML.


.... yes, and gets its rules what to enter from XML (DTD?).

Do you have any link to such tools? My search ended up in xforms but
I'm not shure if I need that. So, I couldn't find anything approriate,
is that possible?!

Thank You
Felix

Mar 9 '06 #3


fk****@googlemail.com wrote:

we need to enter lots of data which are basicly descriptions of pc
hardware configuration like this:

Mainboard:
vendor=...
#of PCI slots=3
slot 1
graphic adapter
vendor=...
slot 2
...
...

What I understand from XML & Co. is that an XML admin could define
valid data structures (like: every mainboard must have RAM, but the
number of RAM modules may be >1 etc.) with an XML editor.

My question is: if there is an editor for the user to enter data (like
into fields of a database) who does not know anything about XML.


XForms allows what you want, you would need a user agent that supports
XForms however. Current desktop browsers like Microsoft Internet
Explorer or Mozilla Firefox do not support XForms natively. For MS IE
there are plugins available, see
<http://www.w3.org/MarkUp/Forms/>
and there is work on its way to implement an extension for Mozilla, it
is currently available as a 0.4 preview release.
<http://www.mozilla.org/projects/xforms/>
--

Martin Honnen
http://JavaScript.FAQTs.com/
Mar 9 '06 #4
Hi Felix,

<fk****@googlemail.com> schrieb im Newsbeitrag
news:11*********************@i40g2000cwc.googlegro ups.com...
My question is: if there is an editor for the user to enter data
(like into fields of a database) who does not know anything
about XML. This editor should on the one hand take the
admin's definitions of valid data from the XML structure, and
on the other hand allow the user to enter data *only* the way
it was defined before.

So, I think we don't simply need an XML editor. Also, it
would not be enough to let the user enter data freely in a
text editor and *later* parse it against errors -- the editor
should visually show to the user what data is required,
what is optional etc.


Microsoft InfoPath could be an alternative:
http://www.xml.com/pub/a/2003/10/29/infopath.html

--
Regards

Lisa
MS MVP Word

Mar 9 '06 #5
fk****@googlemail.com wrote:
Peter Flynn wrote:
fk****@googlemail.com wrote:
[...]
This
editor should on the one hand take the admin's definitions of valid
data from the XML structure, and on the other hand allow the user to
enter data *only* the way it was defined before.

So, I think we don't simply need an XML editor.

Right. You want a data-entry tool that saves the data as XML.


... yes, and gets its rules what to enter from XML (DTD?).


It certainly could. Probably a Schema rather than a DTD, because
DTDs are designed for describing the rules of normal text documents,
whereas Schemas are capable of more complex data rules.
Do you have any link to such tools? My search ended up in xforms but
I'm not shure if I need that. So, I couldn't find anything approriate,
is that possible?!


If you use Microsoft software, have a look an InfoPath.

///Peter
--
XML FAQ: http://xml.silmaril.ie/
Mar 9 '06 #6

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

Similar topics

3
by: Newbee | last post by:
Hi ! Let's say that this is the folder on the server: /web/firstDir/secondDir/images/image.gif where i have stored my pictures. I have tryed with apsolute and relative paths but i can't display...
8
by: Richard | last post by:
Just downloaded python for the fun of it. What do I run to begin coding with? Version 2.3.3 When I run the "command line" thing, I get a dos window. Now what? The built in tutor explains...
0
by: Mike Busch | last post by:
I have been trying for a week to get this project done and I am stuck. I have created a structure in which an array will be present. Useing 3 text boxes to enter data, I am to collect the data and...
3
by: ATH0 | last post by:
How to search for special character { } and how to count them.. I got field called text ( undefined length ) and in this field you must define "{" as start and "}" as end of some text line. If...
2
by: Otto Leholt | last post by:
Hi I have made several website using MS Access and asp. Now I need to upgrade from Accesss to MYSQL - I got my website working with MYSQL on my local PC - but now the problem is how I get it...
4
by: Vic Spainhower | last post by:
Hello, I am trying to setup a file upload using the example from the PHP manual. However, I am getting an Undefined index on userfile in the 2 places where it is referenced. Can someone please...
6
by: hpy_awad | last post by:
I am writing stings ((*cust).name),((*cust).address)to a file using fgets but rabish is being wrote to that file ? Look to my source please and help me finding the reason why this rabish is being...
3
by: nahur | last post by:
why do you need a heap and a stack why not all memory called a heap or call it a stack what is the purpose of having a heap and a stack
89
by: Cuthbert | last post by:
After compiling the source code with gcc v.4.1.1, I got a warning message: "/tmp/ccixzSIL.o: In function 'main';ex.c: (.text+0x9a): warning: the 'gets' function is dangerous and should not be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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.