What are the advantages and disadvantages of using XML schemas?

We are using the XML data type in Microsoft SQL Server 2005 for the project. Some team members, and I feel that we should also use XSD, while members of another camp believe that we should keep XML ad hoc and not treat them as types.

XML is an attempt to bring structure and centrality to several text configuration files, which are a service nightmare.

We use .NET 3.5 / C #, and our tables are designed with the appropriate data types. My argument is that we are already "type-oriented" in our thinking, why we violate this approach because it is XML. This is due to the lack of types with text files that arose in the original problem. Not using the “types” approach leaves us open to the same problem.

Perhaps my understanding of the benefits of XML Schemas is incorrect. So what are the advantages and disadvantages of using XML schemas?

+5
source share
7 answers

, XSD (W3C) , XSD - . , . # , . XML- . , , - XML. , # XML , .

XML , . XML (, ), .

, , , . , XSD.

, , , - , .

+2

XML XSD ( ) , VARCHAR (n). , , .

XSD , XML , . , , .

+2

, , XSD , XML , .

XSD , . .

, XSD - XML, - RelaxNG, , , , - XSD.

+2

, , , XML-. , , XML, , - , XML.

, , .

+1

, ( ). / XSD . ?

+1

XSD XML. http://relaxng.org/. RelaxNG XML, "" , XSD.

+1

An important reason for developing XML is that it allows you to use data from more sources and more so as it has become a widespread standard for exchanging data between any number of computer systems.

0
source

All Articles