Presentation is loading. Please wait.

Presentation is loading. Please wait.

Future Directions for Leveraging Advanced XML Tools and Building Custom XML Solutions Denise Draper DAT321 Microsoft Corporation.

Similar presentations


Presentation on theme: "Future Directions for Leveraging Advanced XML Tools and Building Custom XML Solutions Denise Draper DAT321 Microsoft Corporation."— Presentation transcript:

1 Future Directions for Leveraging Advanced XML Tools and Building Custom XML Solutions Denise Draper DAT321 Microsoft Corporation

2 Background: Core XML tools in Visual Studio XML Editor XSLT Debugger Part of Visual Studio 2005 Both covered in other sessions: TLNL08: Tips and Tricks: Using Advanced Tools Features with XML and XSLT Ken Levy; Thurs 1PM TLN026: Hands-on Lab: XML Tools in VS2005

3 Background: Tools Built on top of XML DataSet Designer Managed Resource Editor Biztalk Designer InfoPath Windows Presentation Framework Visual Studio Team Services … App Config files, VSTO Manifests

4 This Talk: Customized XML Editing in Three Parts No Code: Schemas and Snippets Custom Designer + Source View Future Directions

5 No Code: Schemas and Snippets Custom Designer + Source View Future Directions

6 “No Code” Customized XML Editing Schema-generated snippets for free by associating a schema with a file Adjust behavior of schema-generated snippets with schema annotations Regular snippets for more extensive boiler-plate expansions

7 Finding Schemas How the Xml Editor locates XML Schemas, in priority order:  Document schema property  Matching schema open in Visual Studio  Schema location attribute in XML file  Matching schema found in project  Matching schema found in Visual Studio schema directory & catalog %VsInstallDir%\Visual Studio 8\Xml\Schemas

8 Finding XML Schemas

9 No Code: “Deployment” XML Schemas: Deploy by adding to project or to Schema directory Code Snippets Deploy by placing in “ My Xml Snippets” folder or “ %VsInstallDir%\Xml\1033\Snippets” MSDN: http://msdn.microsoft.com/library/en- us/dnvs05/html/codesnippets.asp?frame=true&_r=1 http://msdn.microsoft.com/library/en- us/dnvs05/html/codesnippets.asp?frame=true&_r=1 http://msdn.microsoft.com/library/en- us/dnvs05/html/codesnippets.asp?frame=true&_r=1

10 No Code: Schemas and Snippets Custom Designer + Source View Future Directions

11 Custom Designers

12 Designer + View Source Create your own Graphic Designers Use XML Editor as Source View

13 Application Structure Custom Designer XML Text Buffer (IVsTextLines) XML Editor (Source View) mutualregistration events

14 How: Details Designer Built on VSIP (Visual Studio SDK) with standard techniques: Implement IVsEditorFactory Use IVsTextLines buffer Control responds to IVsTextLineEvents and IVsTextBufferDataEvents

15 How: Details Registration is via custom attributes, e.g: namespace DataSetEditor {...other declarations......other declarations... [ProvideXmlDesigner("DataSetEditor", null, [ProvideXmlDesigner("DataSetEditor", null, "{1FCA900B-EDAF-48DD-AF13-10C8289B8F04}", null, ".ds", false)] public class Package : Microsoft.VisualStudio.Shell.Package { public class Package : Microsoft.VisualStudio.Shell.Package { }}

16 Status Framework is part of Visual Studio 2005 Existing designers built on this framework DataSet Designer Managed Resource Editor Resources: Visual Studio SDK download available from http://msdn.microsoft.com/vstudio/extend/SDKDownload/

17 No Code: Schemas and Snippets Custom Designer + Source View Future Directions

18 Schema Designer Builds on the same techniques we’ve just seen Adds its own extensibility points Annotations / custom properties Custom constraints

19 Support for XML tooling “Error-tolerant” processing and configurable “auto fix” Shared text buffer means lots of reparsing Shared model instead? Multi-language editing XML embedded in your code Scripts embedded in XML Common tools like XPath wizard or XPath- based Find, sample generation,...

20 What the Future Looks Like XML used as persistent format for lots of custom data Lots of custom designers built on that XML Our goal: Integrate Core XML tools seamlessly into the picture, and provide hooks and support for custom designers

21 Community Resources At PDC For more information, go see TLNL08: Tips and Tricks: Using Advanced Tools Features with XML and XSLT (Thurs 1pm) TLN26: Hands-on Lab: XML Tools in VS2005 Track lounge: TLN and DAT Interested in helping with Visual Studio and Developer Platform planning? Sign up at the TLN track lounge to attend a focus group. http://blogs.msdn.com/brada/2005/09/07/461754.aspx After PDC If you missed this session, watch it on the DVD DAT321: Future Directions for Leveraging Advanced XML Tools and Building Custom XML Solutions Channel 9 on XML tools: http://channel9.msdn.com/ShowPost.aspx?PostID=64642 http://channel9.msdn.com/ShowPost.aspx?PostID=64642 MSDN XML dev center: http://msdn.microsoft.com/xml/ http://msdn.microsoft.com/xml/ MSDN on snippets: http://msdn.microsoft.com/library/en- us/dnvs05/html/codesnippets.asp?frame=true&_r=1 http://msdn.microsoft.com/library/en- us/dnvs05/html/codesnippets.asp?frame=true&_r=1http://msdn.microsoft.com/library/en- us/dnvs05/html/codesnippets.asp?frame=true&_r=1 Visual Studio SDK download: http://msdn.microsoft.com/vstudio/extend/SDKDownload/ Me: denised@microsoft.com

22 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.


Download ppt "Future Directions for Leveraging Advanced XML Tools and Building Custom XML Solutions Denise Draper DAT321 Microsoft Corporation."

Similar presentations


Ads by Google