How to set Schema ID

I am wondering how do I set ID to the schema I. Like below

 <?xml version="1.0" encoding="utf-16" ?>

- <xs:schema xmlns="http://tempuri.org/ABC_REST.xsd" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" elementFormDefault="qualified"

targetNamespace="http://tempuri.org/ABC_REST.xsd" id="ABC_REST" xmlns:xs="http://www.w3.org/2001/XMLSchema">

- <xs:annotation>

- <xs:appinfo> 

<schemaInfo schema_type="property" xmlns="http://schemas.microsoft.com/BizTalk/2003" />

  </xs:appinfo>

  </xs:annotation>

I dont see ID in the properties of the schema. Guide me on this. Thanks



  • Edited by vdha 16 hours 29 minutes ago
September 4th, 2015 10:40am

As seen here on the Schema documentation for the Schema element on W3.Org, there are several attributes that the BizTalk Schema Editor doesn't give you the ability to set. 

<schema
  attributeFormDefault = (qualified | unqualified) : unqualified
  blockDefault = (#all | List of (extension | restriction | substitution))  : ''
  elementFormDefault = (qualified | unqualified) : unqualified
  finalDefault = (#all | List of (extension | restriction | list | union))  : ''
  id = ID
  targetNamespace = anyURI
  version = token
  xml:lang = language
  {any attributes with non-schema namespace . . .}>
  Content: ((include | import | redefine | annotation)*, (((simpleType | complexType | group | attributeGroup) | element | attribute | notation), annotation*)*)
</schema>

Besides id, xml:lang and version are also not settable in the editor.

Remember that the editor is just a visual helper for people not experts at XML Schemas. So if you need to set properties that cannot be set through the visual tool, there is nothing stopping you from generating your Schemas in Notepad etc.

To answer why MS has not included id as a Property in the visual editor, I would think: because BizTalk has no usage for it.

Morten la Cour


  • Edited by la CourMVP 16 hours 24 minutes ago
  • Marked as answer by vdha 13 hours 32 minutes ago
Free Windows Admin Tool Kit Click here and download it now
September 4th, 2015 10:49am

So, why do you need to do this?  It's not used by any runtime component.

If you really need to change it for some metadata reason, just open the .xsd in the Xml Editor and modify it.

  • Marked as answer by vdha 13 hours 32 minutes ago
September 4th, 2015 1:36pm

I dont need to use it. But when I was looking at some schema it had the ID set. So what not sure how it is being set, because I was looking at the properties of the schema there was no ID property. I tried to edit the file/.

Thank you guys in explaining.

Free Windows Admin Tool Kit Click here and download it now
September 4th, 2015 1:42pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics