How to play tag with a bad memory, using XML Schemas.

I used to think it was fantasy that the memory starts going as you get older. Then I though it was a curse, as it got tougher to answer questions of the type which once would have been easy. Then life became hell when everyone seemed to become a developer of a new language. All they had to do was create a bunch of tags to reference some data and as long as they used the tags consistently then they had created labels that could be used to refer to that data. The use of these labels could facilitate communication between two parties in a controlled fashion (language).  

This is obviously one of the features which gives XML its power, the ability to define your own reality! However, if there is no control over this flexibility then you descend into hell as soon as you press the ‘<‘ and you have a bad memory.

So we have schemas (descriptions of corresponding XML documents, themselves written in XML) which help people to communicate what can be represented by the tags. One can even use comments to make the tags understandable to the human reader of the schema. However the schema is primarily used by a machine to ensure that the corresponding document is valid in terms of structure, if not necessarily content.

This is great if you get given an XML document and you have to read it. You can refer to the schema when you don’t understand a tag to see what other things it could contain to gain an idea of the context of the value within the tag. However, XML is more commonly used every day, and when it is used as a control for a configuration file then a feature which would be more useful is a list of the values that can be inserted at a given context within an XML document.

Well this has been possible in Visual Studio (VS) previously and if you have used it there then you miss it if it is not possible to do in an XML editor window within SQL Server Management Studio (SQLMS).

So thanks Bill for the question which prompted the search for the answer to your question which led to me sharing this with others that may not be aware either of the fact that this aid is available in VS or that it can be extended to SQLMS.

"Is it possible to give the XML document editor in SQLMS intellisense like it is available in VS."?

Of course the answer is yes and the process is:-

1) Identify the directory that contains the schemas that SSQMS is aware of . You will find this inside Tools/Options/Text/Miscellaneous. The expanded name for the default setup is ‘C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Xml’

 

 

2) Within this directory identify the catalog.xml file.

 

 

 

3) Identify the directory that contains the Schemas of interest. In this example we will use the schema directory created by Microsoft for Notification services of which the default location is   ‘C:\Program Files\Microsoft SQL Server\90\NotificationServices\9.0.242\XML’  and identify the XML Schemas that you are interested in 

 

 

 

 

 

 

 

 

 

 

 

 

 

4) Take the schema description information from the file of interest

 

 

 

 

      and insert it into the catalog.xml file (See step 2).  

 

 

 

 

 

 

 

 

 

 

 

 

 

5) Open a corresponding XML file and edit it. Notice the drop down list box when you type ‘<‘.

 

6) This is what is being referred to as Intellisense! The contents of the drop down list box changes based on the location where you are inserting a new tag/ label.

 

 7) Now that is useful wouldn’t you agree 😉 Go Play!

This entry was posted in Uncategorized. Bookmark the permalink.

1 Response to How to play tag with a bad memory, using XML Schemas.

  1. Unknown says:

    新網站推薦http://u-nov.com , http://chocho.com.tw , http://tanjyi888.com.tw , http://17lale.com , http://winemap.com.tw , http://emptec.com.tw , http://twcastle.com.tw , http://55888.com.tw , http://well-ness.com.tw , http://ioca.com.tw , http://orgahome.com.tw , http://jpbest.com.tw , http://giftgo.com.tw , http://ing-antai.com.tw , http://iman.com.tw , http://goldfoot.com.tw , http://ujlog.com , http://580168.com.tw , http://qjlog.com , http://flower365.com.tw , http://qmlog.com , http://doli-fashion.com.tw , http://taiwan-bottle.com.tw , http://lklog.com , http://hwaguang-info.com.tw , http://brain-trust.com.tw , http://teil.com.tw , http://k555.com.tw , http://feflowers.com.tw , http://busiban.com.tw , http://ktvmotel.com.tw , http://lanchu.com.tw , http://sex543.com , http://nllog.com , http://udlog.com , http://yslog.com , http://chnli.com.tw , http://m-team.idv.tw , http://zwlog.com , http://twr.com.tw , http://shopping-ez.com.tw , http://dx258.com , http://gbook.idv.tw , http://beam.idv.tw , http://biokey.com.tw , http://qrlog.com , http://liem3031.com.tw , http://znlog.com , http://mybeauty.com.tw , http://oncoprobe.com.tw , http://ezground.com.tw , http://jehnda.com.tw , http://alibo.idv.tw , http://exorcist.com.tw , http://taib2.com.tw , http://hz-nano.com.tw , http://tagh.com.tw , http://chundong.com.tw , http://dreamhouse.idv.tw , http://f-t.com.tw , http://insist.com.tw , http://fudingwin.com.tw , http://s168.com.tw , http://y555.com.tw , http://xzlog.com , http://butybody.com.tw , http://mellowflowers.com.tw , http://hnlog.com , http://kener.com.tw , http://wjlog.com , http://krlog.com , http://cute99.com.tw , http://plomi.com.tw , http://jey.com.tw , http://booksking.com.tw , http://herwings.com.tw , http://sex-picker.com , http://cllgater.com , http://konwen.com.tw , http://goparty.com.tw , http://kplog.com , http://roxane.idv.tw , http://jnd.com.tw , http://page7.com.tw , http://mounyung.com.tw , http://kingdom-art.idv.tw , http://ptok.com.tw , http://sesamefamily.com.tw , http://bodytech.idv.tw , http://rllog.com , http://digifocus.com.tw , http://seahouse.com.tw , http://bgl.com.tw , http://wacoolsite.com , http://blackwood.com.tw , http://fryebie.idv.tw , http://942hala.com , http://webstore.com.tw , http://btmotor.com.tw , http://boutique.com.tw

Leave a comment