Welcome to Dream.In.Code
Getting Help is Easy!

Join 131,725 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,322 people online right now. Registration is fast and FREE... Join Now!




JavaScript code for xml schema validation

 
Reply to this topicStart new topic

JavaScript code for xml schema validation, JavaScript code for xml schema validation

rah.pach
post 6 Oct, 2008 - 09:04 PM
Post #1


New D.I.C Head

*
Joined: 6 Oct, 2008
Posts: 1

function Validate_now(fname)
{
document.write("<b><i>Validating........</i></b>"+filename+"<br>");

var xmldoc = new ActiveXObject("Microsoft.XMLDOM");
xmldoc.async="false";
xmldoc.validateOnParse="true";
xmldoc.load(filename);

document.write("<br><b>Error Code:</b> ");
document.write(xmldoc.parseError.errorCode)
document.write("<br><b>Error Reason:</b> ");
document.write(xmldoc.parseError.reason);
document.write("<br><b>Error Line:</b> ");
document.write(xmldoc.parseError.linepos);

}
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 10:16AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month