Xml comments format?

The flash xml parser reads comments formatted like this:

/* comment */

as xml content, but reads comments like this:

<!-- comment -->

as comments. The documentation shows comments formatted the second way. What gives?