• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Prolem in Validating XML Document using XSD

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • 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
  • 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 )
 
Marshal
Posts: 24586
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!