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 Friday, September 04, 2015 2:38 PM
September 4th, 2015 2:32pm

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 Friday, September 04, 2015 2:43 PM
  • Marked as answer by vdha Friday, September 04, 2015 5:35 PM
Free Windows Admin Tool Kit Click here and download it now
September 4th, 2015 2:42pm

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 Friday, September 04, 2015 5:35 PM
September 4th, 2015 5:29pm

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

Other recent topics Other recent topics