Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Fragments

 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am reading chapter 10 and I cant clearly understand what an XML fragment is.
There r some examples in the book which says about a valid fragment and an invalid fragment. Can anyone give me an example about this ?
This is not clear to me
Thanks
Maya
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the book (page 414), an XML fragment is a well-balanced subset of the original document – so we have complete tag sets.
Well-balanced is looser than well-formed - The subset may consist just of text and it may have multiple elements at the top level.
Cheers,
Dan
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!