Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between an XML "Fragment" and an XML "Document

Tags:

xml

What is the difference between an XML "Fragment" and an XML "Document."?

like image 689
selvakumar Avatar asked Mar 14 '23 08:03

selvakumar


1 Answers

An XML fragment is an XML document with no single top-level root element. To put it simple it is a part (fragment) of a well-formed xml document. (node) Where as a well-formed xml document must have only one root element.

like image 121
HirenPatel Avatar answered Mar 15 '23 22:03

HirenPatel