473,324 Members | 2,567 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,324 software developers and data experts.

about xml schema validations

Hi,

i am new to XML.

i want to validate user input data with .XSD file(before saving the data in xml file) .
how can i validate it through the .net code.

validate xml file with .xsd is ok,any data is mismatch it will throw error. But what my requirement is when user enter a value in text box(user name) this user name attribute had a definition in .xsd . According to given schema definition the control will be validated when i click "next button".

please help me.....

Thanq,
kiran.
Aug 11 '07 #1
3 1360
jkmyoung
2,057 Expert 2GB
How are you sending the data? Are you using ASP?

Also, did you want the data validated before it is sent, eg throwing javascript popup window errors, or are you going to resend the page back to the user listing the errors they have in the form?
Aug 13 '07 #2
How are you sending the data? Are you using ASP?

Also, did you want the data validated before it is sent, eg throwing javascript popup window errors, or are you going to resend the page back to the user listing the errors they have in the form?
hi,
i am using ASP.Net.i want to validate before it is sent to next page. i display the errors in the form it self if any control was not validate. i want to validate control value(text box or ..) with more than one .xsd . if any one can mismatch it will throw error to the user , this is my requirement .

thanks&regards
kiran
Aug 14 '07 #3
jkmyoung
2,057 Expert 2GB
Schema was more designed to validate against an entire document. You could build the document, send it to be validated and report back errors, but this is time-consuming and wasteful if you just want a single field validated.

I would recommend coding a custom solution for each field, or modularize this process such that you could automatically generate validation scripts for each part in the schema. To the best of my knowledge, there is no public tool that does what you are looking for, against XML schema definitions anyways.

Are you validating more than just simple types? eg, xs:integer, xs:dateTime? or do you have complicated types?

This site does not have XML validation, but may help if you validate by field.
http://particletree.com/features/deg...rm-validation/
Aug 14 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Naresh Agarwal | last post by:
Hi I'm using SAX Parser of Xerces Java v2.4.0 for XML Parsing. I want to perform schema validations on the xml. The problem is that root element of XML document does not have...
19
by: Gérard Talbot | last post by:
posted to: alt.html and comp.infosystems.www.authoring.html followup-to: comp.infosystems.www.authoring.html Hello all, I have 2 questions about validations. 1- What's basically the...
1
by: Ryan | last post by:
I have a very complex XDR schema that uses namespaces: xmlns="urn:schemas-microsoft-com:xml-data" xmlns:b="urn:schemas-microsoft-com:BizTalkServer" xmlns:d="urn:schemas-microsoft-com:datatypes"...
0
by: Rajesh Jain | last post by:
I Have 2 separate schemas. --------------Schema 1 is defined as below----------- <xs:schema targetNamespace="http://Schemas/1" xmlns="http://Schemas/1" xmlns:xs="http://www.w3.org/2001/XMLSchema"...
1
by: Dan Bass | last post by:
There's an XML message I have, that has no namespace information. Then there is a XSD schema that is must validate against, but this has a targetNamespace and xmlns of...
1
by: RJN | last post by:
Hi I'm trying to create a datagrid wherein I can select a whole row instead of just one column. I found one sample in 4guysfromrolla http://aspnet.4guysfromrolla.com/articles/072104-1.aspx. But...
1
by: pal.girish | last post by:
Hi, I am totally new to XML. I would like to know is there any way to enforce rules in XML through XML schema such that value of one attribute in some elemnet is validated against values of other...
2
by: The Magpie | last post by:
Thanks for the help with the FAQ and the IBM page, but they didn't help and I've had no luck finding the answer so far. In fact, I'm beginning to think what I want can't be done. If anyone knows of...
1
by: runway27 | last post by:
i am using php in order to validate a form where users register. please help me to solve the following validations. 1. name can have spaces. ex= john smith presently the validation i am using is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.