» Home » validating » Page 1
Never ending loop while setting focus to control on validating event in cantrol validating event
by Topweasel in Programming Languages

I am writing below code for validating compulsary field account no. in form.
User's requirement is set focus back on field when error comes :

If txtAccountNo = "" Then
MessageBox.Show("Account no filed can't be left empty")
Exit Sub
End If

It's working properlly. But suppose user don't want to fill fo

Qt C++ XML, validating against a DTD?
by ThF in C & C++ & C#

Is there a way to validate an XML file against a DTD with Qt's XML handling? I've tried googling around but can't seem to get a straight answer. If Qt doesn't include support for validating an XML file, what might be the process of implementing validation myself? Any good reference to start with in regards to validating XML against a spec? Thanks for the help!

Problem validating XML against DTD in C#
by gqlewis in C & C++ & C#

This has been bugging me for a couple days. I'm trying to load a XML from an uploaded file to into an XmlDocument object and get the following yellow-screen-of-death:

For security reasons DTD is prohibited in this XML document. To enable DTD processing set the ProhibitDtd property on XmlReaderSettings to false and pass the settings into XmlReader.Create method.

PHP: Validating URL with Curl
by Funkwarrior in Programming Languages
$fileSource = "http://google.com";
$ch = curl_init($fileSource);
curl_setopt($ch, CURLOPT_NOBODY, true);
$retcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($retcode != 200) {
$error .= "The source specified is not a valid URL.";

Here's my issue. When I us

PHP regex for validating a URL
by christiandsg in Programming Languages

I'm looking for a decent regex to match a URL (a full URL with scheme, domain, path etc.)
I would normally use filter_var but I can't in this case as I have to support PHP<5.2!

I've searched the web but can't find anything that I'm confident will be fool-proof, and all I can find on SO is people saying to use filter_var.

Does anybody have a regex that they use fo

TAGS : regex validating

Error when validating a XML with XSD
by ec888 in Programming Languages

I'm trying to validate a XML file with XSD, but I get a "Could not find schema information for the element 'xxx'" for each element and attribute.

My C# code is:

public ReadeXmlFile(string FilePath)
var settings = new XmlReaderSettings
IgnoreComments = true,
ValidationType = ValidationType.Schema,

Error validating DTD
by Poland in Programming Languages

I'm trying to write a DTD for an XML file.Here it is : https://prod-c2g.s3.amazonaws.com/db/Winter2013/files/courses-noID.xml

Here's my DTD

<!ELEMENT Course_Catalog (Department*) >
<!ELEMENT Department (Title*, Chair*, Course*) >
<!ELEMENT Chair (Profe
TAGS : Error validating

Regex for validating name
by Progdis in Mobile Programming

Any one please tell me the regex expression for allowing alphabet as first letter and alphabets,digits,.(dot),-(hyphen) as remaining letters with minimum of 2 letters and maximum of 15 letters.

Thank you in advance..

JAXB. Validating XML by two xsd
by green in Programming Languages

Does it possible to validate xml while unmarshaling by two xsd?
I know that you unmarshal xml to object with several contexts by doing this:

context = JAXBContext.newInstance("onepackagecontext:secondpackagecontext");

I can use one schema for validation:


What could I do so that u

TAGS : JAXB Validating

jQuery validating
by Monev in Programming Languages

I am using jQuery form validation plugin as follows:

expression: "if (VAL.match(/^[a-zA-Z0-9 s]{1,150}$/)) return true; else return false;",
message: "Only letters A-Z, a-z, numbers 0-9 and space are allowed. Maximum 150 characters are allowed. And not all spaces are allowed"

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .