Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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>
like image 358
CrimsonX Avatar asked Jun 09 '10 18:06

CrimsonX


People also ask

How does XML organize data?

XML is a hierarchical data description language that uses tags, such as "customer," to define the data components within a document. In contrast, relational databases such as Oracle, Microsoft SQL Server or IBM's DB2 organize data in well-defined rows and columns within tables.

What are the 2 main uses of XML?

Metadata applications: XML makes it easier to express metadata in a portable, reusable format. Pervasive computing: XML provides portable and structured information types for display on pervasive (wireless) computing devices such as personal digital assistants (PDAs), cellular phones, and others.

What are the two types of XML data explain?

There are two types of XML data: Valid - A document type definition (DTD) or schema must be used and applied against the data to have a valid XML document. Well-formed - The document is not validated against a DTD or schema and only needs to follow basic XML structure rules.


1 Answers

<!--region product colors-->
<color name="green_008060">#008060</color>
<color name="green_trans_40_percent_008060">#66008060</color>
<!--endregion product colors-->
like image 77
Lucas B. Avatar answered Oct 19 '22 22:10

Lucas B.