none
How do i change certain namespace names in schema

    Question

  • I am able to change the primary namespace name but there are two others that i am unable to change through Visual Studio (although I could through a text editor):

    xmlns:"http://schemas.microsoft.com/BizTalk/2003"

    xmlns:"http://www.w3.org/2001/XMLSchema"

    Is there a reason why I cannot edit these within the VS IDE?

    Tuesday, September 10, 2013 12:03 PM

Answers

  • You will be able to change the other namespaces through the schema import editor. Ideally the schema only owns the "target namespace" and the rest are included as reference or imports. So if you own all the imported schemas and change their target namespaces then during import the namespaces would be appropriately selected.

    Which namespaces you want changed?

    Regards.

    Tuesday, September 10, 2013 12:12 PM

All replies

  • You will be able to change the other namespaces through the schema import editor. Ideally the schema only owns the "target namespace" and the rest are included as reference or imports. So if you own all the imported schemas and change their target namespaces then during import the namespaces would be appropriately selected.

    Which namespaces you want changed?

    Regards.

    Tuesday, September 10, 2013 12:12 PM
  • Why would you want to change those? These are system-namespaces (one from w3 (XML) and one from MS).


    Also changing them will result in your Schema not working.


    Morten la Cour


    • Edited by la Cour Tuesday, September 10, 2013 12:16 PM
    Tuesday, September 10, 2013 12:13 PM
  • Those schemas are handling schema definitions, annotations and references. Is there a particular reason why you need to change them.

    If this answers your question, please use the "Answer" button to say so... Mikael - http://blogical.se/blogs/mikael

    Tuesday, September 10, 2013 12:14 PM
  • Visual studio imports these namespace you create schema. Namespace http://www.w3.org/2001/XMLSchema-instance  is required for you to use elements, attributes which are inherited from above namepsace.


    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful.

    Tuesday, September 10, 2013 12:24 PM
  • Hi,

    As already mentioned above by  all, this are kind of mandatory namespace which help building your schema.



    I hope this helps!!!!!!

    Maheshkumar S. Tiwari|BizTalk Developer Interview Questions and Answers

    http://tech-findings.blogspot.com/


    Tuesday, September 10, 2013 12:35 PM
  • To answer your question specifically it's because:

    "http://schemas.microsoft.com/BizTalk/2003" is owned by the BizTalk product, in this case, I think it's the Schema Editor so it's just not surfacing an interface to change it because it would break the Editor.  You could open the schema in a text editor and change it, but you'd break downstream BizTalk functionality.

    "http://www.w3.org/2001/XMLSchema" is owned by W3 and is the namespace for all xsd definitions.  It is the "xs:" you see on all schema elements.  You can't change it in the IDE because, well...you really shouldn't be changing it.  It would be like changing the reference to mscorlib.dll.

    As others have asked, why are you interested in modifying these?

    Tuesday, September 10, 2013 1:51 PM