Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Document Fragment

 
Palani kumar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai all
What is Document Fragment ? Can i create a document fragment without a root document object.
Can anyone help me how to use document fragment in java
Thanks
Palanikumar
------------------
In the end everything is Right,If it's not then It's not the End
 
Joe Gilvary
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A fragment is a "piece" of an XML file that includes
all of the markup for every construct it includes.
This could be a fragment:
<subtotal units="usd">
44.77
</subtotal>
<tax unit="usd">
2.77
</tax>

This could not be a fragment:
<subtotal units="usd">
44.77
</subtotal>
<tax unit="usd">
2.77
</tax>
</order>
The second example did not include all of the markup
for the order element, so it is not "well balanced"
and is not a good example of a fragment.
There's more documenatation at www.w3.org on
document fragments.
Joe
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic