• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Prolem in Validating XML Document using XSD

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everybody,

I am a new bie to XML hands on .
I was trying to valildate a XML document with XML schema saved on my local disk drive.
Both are located in the same directory.
when I am opening XML file through internet explorer that explorer opens up that XML document without any validation
in spite of the fact that i have mentioned namespace and all that stuff inside XML document but still it is
not validating.

Regards

Jolly
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jolly,

I'd suggest,download a demo version of XmlSpy or Oxygen and then try validating your xml.(presuming you are giving correct path of you Schema file in your xml header section )
 
Sheriff
Posts: 28371
99
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why would you expect a browser to validate your XML?
 
Jolly Tiwari
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI! Friends,

Just to share the information, I came across a nice solution to my problem regarding validating XML document using
XML schema.

If we want Internet Explorer to validate an XML document by using an XML schema, we have to do a little extra work by using JScript, Internet Explorer's version of JavaScript.



The XML support in Internet Explorer is built into the MSXML package .MSXML version 4.0 is the version that supports XML Schema Definition Language (XSD) schemas.

Now i am able to perform validation of XML document with XSD using internet Explorer.

Regards

Jolly
 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jolly,

I am having the same problem. I tried your solution , seem to be having a problem with schemaHandler though (line 9)



any idea why?

thank you
 
Where does a nanny get ground to air missles? Protect this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic