473,657 Members | 2,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2068
fk****@googlema il.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****@googlema il.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****@googlema il.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****@googlem ail.com> schrieb im Newsbeitrag
news:11******** *************@i 40g2000cwc.goog legroups.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****@googlema il.com wrote:
Peter Flynn wrote:
fk****@googlema il.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
1924
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 images.... If i right click on the image the whole path is displayed on this way: http://www.test.com/Dir1/Dir2/Dir3/web/firstDir/secondDir/images/image.gif Should i define global variables(?) or how to solve this....
8
1499
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 some basics about programming but zilch on where to begin.
0
854
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 print out a report of all the data entered. I have done this with list and combo boxes, but this is very different to me. I need to print this list with headings on the columns. I have the heading down, but when I print I only get a total of...
3
2361
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 you can find both {} then you have to count them. example: bla bla bla {bla { asd asd} Result:
2
5837
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 working on my webhost . I have the right connecting string ( according to webhotels supporter) but how do I transfer my SQL database from local pc to server..?? With MS Access it was very straight forward - I just uploaded my .MDB file to my DB folder...
4
1462
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 tell me what this error means and why it is happening? Thank you, Vic
6
3491
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 written. /* Book name : File name : E:\programs\cpp\iti01\ch10\ex09_5p1.cpp Program discription: Adding name,Address to customer_record SETUP PROGRAM
3
1707
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
6035
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 used." Could anybody tell me why gets() function is dangerous?? Thank you very much. Cuthbert
0
8392
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8730
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6163
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4151
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1950
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1607
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.