Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 8th, 2006, 09:45 PM
fkater@googlemail.com
Guest
 
Posts: n/a
Default 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

  #2  
Old March 8th, 2006, 11:15 PM
Peter Flynn
Guest
 
Posts: n/a
Default Re: newbee: using XML to define how to enter data?

fkater@googlemail.com wrote:[color=blue]
> 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.[/color]

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.
[color=blue]
> 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.[/color]

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.
[color=blue]
> 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.[/color]

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/

  #3  
Old March 9th, 2006, 07:25 AM
fkater@googlemail.com
Guest
 
Posts: n/a
Default Re: newbee: using XML to define how to enter data?


Peter Flynn wrote:[color=blue]
> fkater@googlemail.com wrote:[/color]

[...]
[color=blue][color=green]
> > 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.[/color]
>
> Right. You want a data-entry tool that saves the data as XML.[/color]

.... 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

  #4  
Old March 9th, 2006, 01:25 PM
Martin Honnen
Guest
 
Posts: n/a
Default Re: newbee: using XML to define how to enter data?



fkater@googlemail.com wrote:

[color=blue]
> 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.[/color]

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/
  #5  
Old March 9th, 2006, 02:05 PM
Lisa Wilke-Thissen
Guest
 
Posts: n/a
Default Re: newbee: using XML to define how to enter data?

Hi Felix,

<fkater@googlemail.com> schrieb im Newsbeitrag
news:1141853600.265511.13620@i40g2000cwc.googlegro ups.com...
[color=blue]
> 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.[/color]

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

--
Regards

Lisa
MS MVP Word

  #6  
Old March 9th, 2006, 09:25 PM
Peter Flynn
Guest
 
Posts: n/a
Default Re: newbee: using XML to define how to enter data?

fkater@googlemail.com wrote:[color=blue]
> Peter Flynn wrote:[color=green]
>> fkater@googlemail.com wrote:[/color]
>
> [...]
>[color=green][color=darkred]
>>> 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.[/color]
>> Right. You want a data-entry tool that saves the data as XML.[/color]
>
> ... yes, and gets its rules what to enter from XML (DTD?).[/color]

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.
[color=blue]
> 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?![/color]

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

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

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles