• 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

XML Schema Help

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to include the xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' and xsi:noNamespaceSchemaLocation='IMSSchema1.xsd' attribute of the xml file in xml schema(xsd)
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Umm. I admit that my schema knowledge is a bit rusty but I couldn't understand what exactly are you asking here. Could you elaborate a bit?
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i guess he has an xml instance document which contains these attributes not. i.e. the schema location etc.. ?
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Priyadharshini Nagarajan:
How to include the xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' and xsi:noNamespaceSchemaLocation='IMSSchema1.xsd' attribute of the xml file in xml schema(xsd)



The schema location attribute doesn't belong in the schema file. It belongs in the XML instance file that is based on that schema.
It that what you asked or am I missing something here...

- m
 
Priyadharshini Nagarajan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Tell me how to validate my xml document against xml schema(xsd).

i am having my xml and xsd in the same location.
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you read the IBM developerWorks tutorial?
 
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic