Intellisense for XML using VS.NET 2003
There is a neat trick to get XML intellisense in VS.NET for a given XSD. First place your XSD file at this location (C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Packages\schemas\xml). Make sure you have a unique namespace for the XSD attribute targetNamespace. Here is an XSD fragment examplexs:schema xmlns:vs="urn:schemas-microsoft-com:HTML-Intellisense" targetNamespace="http://joetest/Example" xmlns:xs="http://www.w3.org/2001/XMLSchema"
Now open VS.NET create a new file and in the root element type the following xmlns="substitute your unique namespace here". Here is an XML fragment example
xmlns=" http://joetest/Example"
Now type any element and you would be guided by intellisense.I have noticed that if a change is done to the schema then its not immediately reflected unless you close and reopen VS.NET 2003.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home