File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML Schema Help
 
Similar Threads
why .xsd and not .xml?
DTD v/s XSD
Validating input data passed to web service
XSD parsing errors
how to generate xml file using xsd schema in java ?