Author Topic: xml comments  (Read 403 times)

dimaq

  • Hydlaa Resident
  • *
  • Posts: 87
    • View Profile
xml comments
« on: January 08, 2005, 06:56:22 pm »
2 xml files, namely zoneinfo.xml and releaselist.xml contain comments like these:



Developers should be aware that \'--\', i.e. double-dash has special meaning inside an xml comment - namely it stops and restarts the comment.

example:   will contain 2 cdata nodes \" text \" and 3 comment nodes.

in short, unless you want to count all the dashes in the comments, don\'t use them :). These particular comments are in between of nodes that expect cdata, so the potential extra text will probably be ignored anyway though.