473,383 Members | 1,785 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.

Which web apps actually validate?

One of the students in my XML class is asking what the purpose of
validating is in the context of a web application. He's trying to
figure out how he would use XML Schema or Relax NG and associated tools
to validate input from a web form. This is the wrong approach, since
that input isn't XML at all.

I've told him that any XML validation would most likely occur at the
server side, when servers have to transfer data that is in XML format
and make sure that everything is OK. Does anyone know examples of
XML-based content management systems, or web applications, that do
validation on the server side? I'd like to be able to point this
student to some examples in actual use.

(If this is already covered in the FAQ, sorry; I must have missed it on
first reading.)

Oct 17 '05 #1
4 1306
J David Eisenberg wrote:
One of the students in my XML class is asking what the purpose of
validating is in the context of a web application. He's trying to
figure out how he would use XML Schema or Relax NG and associated tools
to validate input from a web form. This is the wrong approach, since
that input isn't XML at all.
The w3c is creating a new standard for the forms in the old html:

XForms,

in XForms the input is send as a xml model to the server,
and can also be bound to a XSchema.

I've told him that any XML validation would most likely occur at the
server side, when servers have to transfer data that is in XML format
and make sure that everything is OK. Does anyone know examples of
XML-based content management systems, or web applications, that do
validation on the server side?
I use XSchema documents to validate my config files in
my content management system.
My content management system is also almost completely XML based,
but it relies on a relational database ( there is data abstraction
so in the future i can move to a xml database)
I'd like to be able to point this
student to some examples in actual use.


Well, on tomcat there are a lot of config files and
they have an XML Schema.
Oct 17 '05 #2
J David Eisenberg wrote:
One of the students in my XML class is asking what the purpose of
validating is in the context of a web application. He's trying to
figure out how he would use XML Schema or Relax NG and associated tools
to validate input from a web form. This is the wrong approach, since
that input isn't XML at all.

I've told him that any XML validation would most likely occur at the
server side, when servers have to transfer data that is in XML format
and make sure that everything is OK. Does anyone know examples of
XML-based content management systems, or web applications, that do
validation on the server side? I'd like to be able to point this
student to some examples in actual use.
Probably Lenya (lenya.apache.org) but I haven't tried it yet. Cocoon
certainly does.
(If this is already covered in the FAQ, sorry; I must have missed it on
first reading.)


Validation is covered, but not the reasons why you might want to validate
(or not). Your example is correct. The most widespread occurrence of
validation is probably in XML editors, where the software is checking
that what you have done (or are trying to do) is within the rules of
the DTD or Schema you have specified. Once a file is known to be valid,
there is little point in validating it again and again, unless you are
exporting it to another application which may have no way to know if
its input (your output) is valid or not.

///Peter

Oct 17 '05 #3
On 17 Oct 2005 12:54:15 -0700, "J David Eisenberg" <da***@catcode.com>
wrote:
Does anyone know examples of
XML-based content management systems, or web applications, that do
validation on the server side?


Not obvious ones offhand.

The only popular application I can think of for bulk validation against
a schema or DTD is with HTML/XHTML authoring. Authors are finally
getting the message here and validation is this month's fashionable
thing. It's also one of the few cases where there's a lot of hand-edit
of documents where validity is far from an assumption. In most of the
web services or database query tasks there might be a lot of validation
in the development phase, but the assumption is by-and-large that valid
tools accepting valid inputs will continue to generate valid documents.

As to user input validation, then I've never seen schema used as a major
part of that - it's just too poorly descriptive, particularly in how to
react after invalid input. Like compilers, a good user-input tool is
mainly a device for generating really helpful error messages after bad
input, then just occasionally getting to process a valid set.

Some of the ontology tools (sniff around the Protege project) also do
validation against schema or OWL.

Oct 17 '05 #4
You might want to have a look at
http://www.mgateway.com/ewd/XMLForms1.2.pdf

This automatically performs back-end validation based on the XML
Schema from which the web form is automatically derived.

I'm sure your XML class in general will find this totally XML-based
tool interesting in its own right

On 17 Oct 2005 12:54:15 -0700, "J David Eisenberg" <da***@catcode.com>
wrote:
One of the students in my XML class is asking what the purpose of
validating is in the context of a web application. He's trying to
figure out how he would use XML Schema or Relax NG and associated tools
to validate input from a web form. This is the wrong approach, since
that input isn't XML at all.

I've told him that any XML validation would most likely occur at the
server side, when servers have to transfer data that is in XML format
and make sure that everything is OK. Does anyone know examples of
XML-based content management systems, or web applications, that do
validation on the server side? I'd like to be able to point this
student to some examples in actual use.

(If this is already covered in the FAQ, sorry; I must have missed it on
first reading.)


---
Rob Tweed
M/Gateway Developments Ltd

The Pursuit of Productivity : http://www.mgateway.com
---
Oct 19 '05 #5

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

Similar topics

9
by: Leona | last post by:
Hello all, does anyone know of a tool, preferably free, preferably on linux, which will take an xml file and validate it against your own custom W3C XML Schema file (.xsd) ?? All help...
1
by: Hugo | last post by:
I have a dual boot machine, runs Win XP pro and Win XP Pro 64, XP boots from C and XP 64 boots from D. They both have VS 2005 Beta 2 installed. I have a webapp developed in Win XP (32) which...
6
by: Cyril Vi?ville | last post by:
As it's written in the subject, i would like to know how can i find which program modified a file (last access, last changed). By example: Example.txt in a log directory I need to know which...
1
by: KMZ_state | last post by:
I posted the following question but wanted to clarify that the developer who wants to validate on the ASPX meant the CODE BEHIND page of the ASPX. Does this make a difference in anyone's...
1
by: Dan Sikorsky | last post by:
How can you tell which FormView controls have different values from their initial values when the page was loaded? If the user clicked the submit button on the EditItemTemplate and no controls...
5
by: Seb | last post by:
Hi, I am trying to find the right regular expression which would only validate a URL with a given number of folders. Example: http://www.abc.com/folder/page.htm --Valid (4 slahes)
4
by: =?Utf-8?B?UmljaA==?= | last post by:
Hello, Does vb2005 have a built-in UnDo feature / object for applications so that I can undo actions like other windows apps? Or do I have to write my own UnDo routine? If vb2005 does have a...
29
parshupooja
by: parshupooja | last post by:
Hi, I am working in Asp.Net 2.0, SQL Server, C#. I am trying to create a User Input form which has lots of fields such as : salutation; Firstname: lastname: address: Zip: Phone:
2
by: vamsioracle | last post by:
hi i have a problem in oracle apps. Actually we use Orcle Financialsat two locations. we connect directly to server at one location and the other uses citrix server itseems. recently the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.