• 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
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

xml schema validation, is it a dream ?

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please help me... I'm searching since a lot of time of to perform validation of an xml document according to an xml schema, using xerces...
I know how to write the java class... but how can I reference the xml schema from inside the xml file because the parser is constantly giving me the same response :
http://www.xml-schema.com/examples/schema/Editor grammar not found

Here are my files header :
XML :
xmlns="http://www.xml-schema.com/examples/schema/Editor"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.xml-schema.com/examples/schema/Editor
http://www.xml-schema.com/examples/schema/editor.xsd">
XSD :
<schema targetNamespace="http://www.xml-schema.com/examples/schema/Editor"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:e="http://www.xml-schema.com/examples/schema/Editor"
elementFormDefault="qualified">
If I have my xml schema on my local hard drive, how to reference it from the xml ??
Well, please take time to read and answer my message... I found some examples on internet but I can't make them working..
Christophe
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic