Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > [ANN] New XML Text Editor in Visual Studio

Thread Tools

[ANN] New XML Text Editor in Visual Studio

Chris Lovett
Posts: n/a
Announcing: New XML Text Editor in Visual Studio 2005 Beta 1
Visual Studio 2005 Beta 1 contains a completely new XML Text Editor, built
on top of the core text editor provided by Visual Studio. It is entirely
written in C# and leverages all the cool stuff provided by the System.Xml
..NET assembly. The XML editor provides support for editing XML and DTD
content, including special support for XSD and XSL and includes the
following handy features:

a.. Full syntax coloring for all XML and DTD syntax.
b.. Well formedness checking while you type, with red squiggles and error
c.. Intellisense based on any DTD, XDR and XSD schemas.
d.. Validation-while-you-type with blue squiggles and error list.
e.. Auto-completion of namespace declarations, end tags and attribute
value quotes.
f.. Support for xsi:schemaLocation and xsi:noNamespaceSchemaLocation
g.. Schema picker dialog for overriding schemas used for validation, which
is then remembered as a document property in your solution.
h.. Schema cache for commonly used schemas with standard set provided out
of the box. You can easily add your own schemas here or edit the existing
ones to constantly improve your XML editing experience.
i.. Smart Formatter that is more than a pretty printer. It honors and
formatting of attributes that you may have done by hand and it fixes up the
most common mistakes people make in XML, like unquoted attribute values.
j.. Smart indenting based on XML element depth.
k.. Inline expand/collapse support.
l.. Easy navigation between start and end tags using brace matching
command (Ctrl+]) .
m.. Brace highlighting so you see which tags are being closed as you type.
n.. Goto Definition command for navigating between elements and their
associated DTD, XDR or XSD schema definitions. This command can also
navigate from an entity reference to the entity definition in the DTD.
o.. Tool tips that popup showing xsd:annotations for the element or
attribute under the mouse.
p.. XSL and XSD compilation errors while you type, providing even more
error checking that can be represented in the schemas alone.
q.. Show XSLT Output command available on any XML or XSLT file.
XSD Schema Inference
The editor also provides a handy command named "Create Schema" which does
one of three things:

1.. Convert associated DTD to XSD
2.. Convert associated XDR schema to XSD
3.. Infer a schema from the XML
This is by far the easiest way to get started with designing an XSD schema.

XSLT Debugging
In non-Express SKU's only, this feature gives you a powerful XSLT debugger,
fully integrated into the overall Visual Studio debugging experience so you
can step from C# code directly into the XSLT transform itself and back out,
or from XSLT out to extension objects and back. It also provides a "Debug
XSL" command on XML editor toolbar to start debugging directly from XML or
XSL file.

Once debugging has started the standard Visual Studio debugging menu is
available including special support for the following:

Setting and clearing breakpoints, at the node level (as opposed to
line level).

Locals window that shows XSLT variables and parameters that are in

Call Stack window that shows XSLT template stack.

Deep VS Integration & Extensibility
All the advanced core text editor commands and configurability is available,
for example:
a.. Configurable colors using standard Tools/Options/Environment/Fonts
and Colors property page.
b.. Integrated text editor settings (Tools/Options/Text Editor/XML) for
general, tabs and miscellaneous settings.
c.. Support for the new Visual Studio 2005 "Import/Export Settings"
Support for multiple-views over the same buffer. In Visual Studio 2003, the
XSD designer and grid views were only available from a tab at the bottom of
the document window, which means you could not view both ways at the same
time. This limitation has been removed, and each different view is now a
full fledged document window.

Custom XML designers can also be registered per file extension and/or XML
namespace URI, which is how the Visual Studio XSD designer, DataSet
designer, and the Grid View are associated with the XML editor. Anyone can
now register an XML designer for a given namespace and the XML editor will
automatically provide a View Designer menu item for invoking that designer.
In fact, if you are planning on building an XML designer, I'd love to chat
with you about integrating it with our new XML text editor. (You should be
able to figure out my email address from the anti-spam from-address).

All feedback is welcome!

XML Editor team,

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Visual Studio Team System and Visual Studio Foundation Server are same?. Thirumalai ASP .Net 0 05-22-2006 08:48 AM
ANN: New low-cost XML Editor, XSLT Editor, XSLT Debugger, DTD/Schema Editor Stylus Studio Java 0 08-03-2004 03:53 PM
[ANN] New XML Editor in Visual Studio 2005 Beta 1 Chris Lovett XML 0 07-01-2004 07:23 AM
[ANN] New XML Editor in Visual Studio 2005 Beta 1 Chris Lovett XML 0 07-01-2004 07:16 AM
visual studio .net 2003 verses visual studio .net 2002 wh ASP .Net 2 01-16-2004 04:54 PM