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

I would like my XML data to be expandable and extensible using a preprocessor command, such as the # region / # endregion command in C # /. NETWORK. I am editing this Visual Studio 2008 file.

Is there such an ability? I googled to no avail. Closest I can go so far as to expand and collapse tags, so I can collapse between

<Data> (this is collapsed) </Data> 
+7
c # xml visual-studio-2008 region
source share
3 answers

There seems to be some kind of supported Visual Studio ability to do what I'm looking for. As discussed in the Oded answer , the best solution was to add XML comments such as

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

with a space for organizing the code.

+6
source share

if you have VS 2010 +, then the fantastic extension here is your best new friend. http://visualstudiogallery.msdn.microsoft.com/3c534623-bb05-417f-afc0-c9e26bf0e177/view/Reviews If not, (update?

+5
source share

Using such commands would change the XML file itself, so I cannot see a real use case for this, and, as you said, you can collapse the tags themselves, so that you already have the perfect solution for your problem. Why do you need more than that?

+2
source share

All Articles