What is XML Schema Instance (XSI)?
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 107
- Joined: Mon Jul 30, 2007 11:31 pm
- Location: College Park, MD, United States
What is XML Schema Instance (XSI)?
Hey,
I'm a longtime HTML/CSS junkie that has just become absolutely fascinated by the power of XML. What powerful things it can do!
Anywho, I was interested in writing an XML file which would contain the <model> for an XForm. I noticed the autocomplete wasn't kicking in, even though I gave it the namespace for XForms in an xmlns attribute. But no content assist--so I poked around and found oXygen's "Associate with a schema" option, and voila! It wrote the code necessary for content assist to kick in.
Instant XForms autocomplete. Thank you, oXygen.
However, one of the items in this generated code was the XSI namespace (http://www.w3.org/2001/XMLSchema-instance). I know what an XML Schema is (as in *.xsd files), but what is a Schema Instance? What is it used for?
Thanks one and all. This is some exiting stuff!
[/code]
I'm a longtime HTML/CSS junkie that has just become absolutely fascinated by the power of XML. What powerful things it can do!
Anywho, I was interested in writing an XML file which would contain the <model> for an XForm. I noticed the autocomplete wasn't kicking in, even though I gave it the namespace for XForms in an xmlns attribute. But no content assist--so I poked around and found oXygen's "Associate with a schema" option, and voila! It wrote the code necessary for content assist to kick in.
Instant XForms autocomplete. Thank you, oXygen.

However, one of the items in this generated code was the XSI namespace (http://www.w3.org/2001/XMLSchema-instance). I know what an XML Schema is (as in *.xsd files), but what is a Schema Instance? What is it used for?
Thanks one and all. This is some exiting stuff!

-- Zearin
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi Zearin,
The schema instance namespace (http://www.w3.org/2001/XMLSchema-instance) defines a few attributes that are used in instance documents with special meaning. The xsi:noNemaspaceSchemaLocation and xsi:schemaLocation attributes are used to associate XML Schemas with XML documents. The xsi:nil attribute is used in the XML instance documents to specify that an element defined as nillable in the XML Schema is nil. The xsi:type attribute is used to specify a specific type for an element in the instance document.
For more details see:
http://www.w3.org/TR/xmlschema-1/#Insta ... structions
Best Regards,
George
The schema instance namespace (http://www.w3.org/2001/XMLSchema-instance) defines a few attributes that are used in instance documents with special meaning. The xsi:noNemaspaceSchemaLocation and xsi:schemaLocation attributes are used to associate XML Schemas with XML documents. The xsi:nil attribute is used in the XML instance documents to specify that an element defined as nillable in the XML Schema is nil. The xsi:type attribute is used to specify a specific type for an element in the instance document.
For more details see:
http://www.w3.org/TR/xmlschema-1/#Insta ... structions
Best Regards,
George
George Cristian Bina
Return to “General XML Questions”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service