View RSS Feed

My Java Tips

XML Prolog

Rating: 1 votes, 1.00 average.
by , 11-01-2011 at 06:15 PM (1980 Views)
Developer who are working with XML, should know about XML prolog. This post will brief you about the said topic.

Its an optional component of the XML document. If you wish to include it, then it must appear before the root element. A prolog consists of two parts:

Part 1 comprises of XML declaration
Part 2 comprises of Document Type Declaration (DTD)

You can include both depending on your needs.


<!--?xml version="1.0"?-->
<!-- some tags here-->

Submit "XML Prolog" to Facebook Submit "XML Prolog" to Digg Submit "XML Prolog" to Submit "XML Prolog" to StumbleUpon Submit "XML Prolog" to Google

Tags: None Add / Edit Tags