validator (1,056)


How do you make sure email you send programmatically is not automatically marked as spam?

How do you make sure email you send programmatically is not automatically marked as spam?

This is a tricky one and I've always relied on techniques, such as permission-based emails(i.e. only sending to people you have permission to send to) and not using blatantly spamish terminology. Of l…


How important is W3C XHTML/CSS validation when finalizing work?

Even though I always strive for complete validation these days, I often wonder if it's a waste of time. If the code runs and it looks the same in all browsers(I use browsershots.org to verify) then…


javascript - Is there anyway to disable the client-side validation for dojo date text box?

In my example below I'm using a dijit.form.DateTextBox:<input type="text" name="startDate" dojoType="dijit.form.DateTextBox" constraints="{datePattern:'MM/dd/yyyy'}" value='<c:out value="${sessionS…


c# - Enforcing required function call

I have a "Status" class in C#, used like this: Status MyFunction(){if(...)// something bad return new Status(false, "Something went wrong") else return new Status(true, "OK");}Yo…


c# - Compact Framework-how do I dynamically create type with no default constructor?

I'm using the.NET CF 3.5. The type I want to create does not have a default constructor so I want to pass a string to an overloaded constructor. How do I do this? Code: Assembly a=Assembly.LoadFro…


Algorithmic complexity of XML parsers/validators

I need to know how the performance of different XML tools(parsers, validators, XPath expression evaluators, etc) is affected by the size and complexity of the input document. Are there resources out…


Validate(X)HTML in Python

What's the best way to go about validating that a document follows some version of HTML(prefereably that I can specify)? I'd like to be able to know where the failures occur, as in a web-based valida…



Is there a class to generate a sample XML document from XSD schema in.NET

In Visual Studio you can create a template XML document from an existing schema. The new XML Schema Explorer in VS2008 SP1 takes this a stage further and can create a sample XML document complete wit…


regex - Regular Expression to match valid dates

I'm trying to write a regular expression that validates a date. The regex needs to match the following M/D/YYYY MM/DD/YYYY Single digit months can start with a leading zero(eg: 03/12/2008) Single d…


The best way to validate XML in a unit test?

I have a class with a ToString method that produces XML. I want to unit test it to ensure it is producing valid xml. I have a DTD to validate the XML against. Should I include the DTD as a string wi…




validation example validate custom how not for java form field