473,473 Members | 1,637 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

post-schema/application validation

Hi,

When validating an XML instance, sometimes the schema is not enough to
expression the validation rules. Additional validation rules may be
expressed in an application-specific way. For example, using XPath or
Java method. So is there a concept and/or standard for post-schema
validation or application validation? Is there any hook in XML
standards that allow me to hook up with my customized validation?
Additionally and more specificly, when using XForm, is there any hook
to the customized validation?

Thanks in advance!

Xiao Ma

Jul 20 '05 #1
2 2123
wumingshi wrote:
Hi,

When validating an XML instance, sometimes the schema is not enough to
expression the validation rules. Additional validation rules may be
expressed in an application-specific way. For example, using XPath or
Java method. So is there a concept and/or standard for post-schema
validation or application validation? Is there any hook in XML
standards that allow me to hook up with my customized validation?
Additionally and more specificly, when using XForm, is there any hook
to the customized validation?

Thanks in advance!

Xiao Ma


I don't think you can extends XSD, because it is a standard, every xsd document
must follow the standard,

a possibility is to check your own validation rules using your own code.
But in that case an xml document could be valid (xsd valid) but now valid
in your own rules.

When using XForms you should check your own rules at the server side and react
on that, but if you can try to put the validtion rules also in the xform itself,
because in that way you can decrease the number of trips to server-client a
client has to make.

But remember, you cannot rely on xform validation, you should check it on the
server-side also.

Jul 20 '05 #2
ajm
if you forgive me for saying so your question is rather vague (!)
but let me try to give you a couple of pointers ;) first it
helps to distinguish between grammer and assertion based
validation and second between data and application validation.

on the first point there are two broad possibilities - validation
that checks grammer (e.g., does X has the correct attributes,
children etc.) e.g., Schema, DTD etc. and validation that checks
assertions (e.g., do all the values attributes of children of X
add up to 100 etc.) - here the best option is Schematron. I like
to combine the two and Schema/Schematron is a good combination.
(the latter sounds like what you meant by XPath validation?)

the point of XML validation, however, is to ensure that the data
is in a certain state and I would suggest that you do not mix
application and data validation (e.g., "validation rules using
Java" etc.). data validation should confirm invariants and
expectation v.v. the data - perhaps it is up to the application, not
to validate per se but to work under those assumptions (e.g., it is
ok to process an XML document because it is known that X and Y are
true etc.) if you had a specific example of what you meant though...

if you feel strongly about application binding then you probably
want to look at XMI or binding frameworks perhaps - choices here
depend a bit on your choice of language etc. I personally wouldn't
focus too much on the fact that it is XForms you are interested in
since it is likely not to matter too much precisely what vocabulary
you are using.

hth
ajm.
"wumingshi" <xm**@yahoo.com> wrote in message news:<11**********************@g14g2000cwa.googleg roups.com>...
Hi,

When validating an XML instance, sometimes the schema is not enough to
expression the validation rules. Additional validation rules may be
expressed in an application-specific way. For example, using XPath or
Java method. So is there a concept and/or standard for post-schema
validation or application validation? Is there any hook in XML
standards that allow me to hook up with my customized validation?
Additionally and more specificly, when using XForm, is there any hook
to the customized validation?

Thanks in advance!

Xiao Ma

Jul 20 '05 #3

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

Similar topics

0
by: Spud | last post by:
<?php // pullpage function by Nick bouton http://www.nickbouton.com/. $CustomerID = "IDHERE"; $method = "POST"; $host = "xml.mydata.com"; $usepath = "/xml.asp"; //print all vars in an...
1
by: Alec | last post by:
Hi All, I have recently built a site using PHP and MySQL, and started to implement a basic forum into it. However, the form to post messages doesnt do what I want it to. If there is no user...
2
by: Erik Johnson | last post by:
I am trying to work with a program that is trying make an HTTP POST of text data without any named form parameter. (I don't know - is that a normal thing to do?) I need to write a CGI program that...
15
by: Thomas Scheiderich | last post by:
I am trying to understand Session variables and ran into a question on how they work with data that is passed. I have an HTM file that calls an ASP file and sends the name either by GET or POST....
0
by: Hans Forbrich | last post by:
Section 1. Ballot: ------------------- 1.YES NO: I agree that there should be a periodic post describing the newsgroup charter and providing a FAQ on newsgroup usage. 2.MONTHLY BI-WEEKLY...
24
by: moriman | last post by:
Hi, The script below *used* to work. I have only just set up a server, PHP etc again on my Win98 system and now it doesn't? On first loading this page, you would have $p = and the button...
9
by: c676228 | last post by:
Hi, I am new to this discussion forum. I started to post questions on this forum since this Jan. and got many good responses and I am very appreciated to those who are willing to help with their...
3
by: JansenH | last post by:
We have implemented a 'HTTP Post' client in C# that posts Xml documents to a webserver. This is working fine if the post rate is one post for every 20 seconds. But if the post rate is increased to...
6
by: Brybot | last post by:
I am trying to allow HTTP POST file uploads to my web service. Currently I have it working perfectly for a SOAP/XML request reading in a byte using MemoryStream/FileStream but I cannot figure out...
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...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.