XML file and text files!

I want to know the advantages of using an XML file over a text file, please help me!

+3
source share
6 answers

XML means a structured document, standard validation and description tools ( DTD , Schema ) and a standardized way to parse them (i.e. DOM )

β€œRaw” text files may mean that they are easier to write (there is no need to respect any fingerprints of tags or something else), but since they do not necessarily have a well-defined structure, they can be complicated for parsing.

+3
source

. , . txt , , . , txt txt.

XML , - XSD XML - . , XSL ( XSLT ) . , , XPath , XML-.

, XML . , . , .

+1

, :

:

  • XML-, .
  • XMLs ,
  • .
  • , XSLT, XPath XQuery, .

:

  • .
  • , ,
  • , CSV () .
+1

XML , , . XML .

(, -), . , , XML- , .

XML / ( ) . . , "XML " .

0

: , XML, .

: .. XML . :

.

0

xml

  • ,
  • xml, xml .
  • .
  • .
0
source

Source: https://habr.com/ru/post/1734518/


All Articles