jQuery in Action, 2nd edition*
The moose likes XML and Related Technologies and the fly likes XML Schema Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML Schema Help " Watch "XML Schema Help " New topic
Author

XML Schema Help

Priyadharshini Nagarajan
Greenhorn

Joined: Sep 24, 2004
Posts: 22
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)
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
i guess he has an xml instance document which contains these attributes not. i.e. the schema location etc.. ?
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
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


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Priyadharshini Nagarajan
Greenhorn

Joined: Sep 24, 2004
Posts: 22
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
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Have you read the IBM developerWorks tutorial?
 
Don't get me started about those stupid light bulbs.
 
subject: XML Schema Help