• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is the tld file really an xml file?

 
Vedhas Pitkar
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
IS the tld an xml file because
1)It does not end with .xml
2)It does not need to have
<?xml version="1.0" encoding="ISO-8859-1" ?>
on top of it.
Any answers?
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) The XML specification has no requirement for the file to have an .xml extension. In fact, unix systems do not have the concept of a filename extension as you know it in Windows.
2) See the XML prolog production in the specification. The XML Declaration is optional. You are free to add the prolog to your TLD though!
So yes, it is a perfectly valid XML file.
- Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic