How to organize xml data using equivalent to #region / #endregion (outlining) from C# .NET

CrimsonX picture CrimsonX · Jun 9, 2010 · Viewed 10k times · Source

I'd like to organize my XML data to be collapsable and expandable using a preprocessor command like the #region/#endregion command in C#/.NET. I'm editing this file Visual Studio 2008.

Does any such ability exist? I've googled to no avail. The closest I can come to so far is to expand and collapse the tags themselves, so I can collapse between

<Data> 
(this is collapsed)
</Data>

Answer

CrimsonX picture CrimsonX · Jun 15, 2010

There does not appear to be any Visual Studio supported ability to do what I'm looking to do. As discussed in Oded's answer, the best solution was to add XML comments like

<!--START [enter description]--> 
<myDataHere .../>
<!--END [enter description]--> 

with Whitespace to organize the code.