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

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 2110
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.