Hi,
the only place you cannot put a comment (except inside element
decls) is before the <?xml bit. Nothing can go there.
<?xml version="1.0"?>
<!-- some comment -->
<root >
<!-- some comment -->
</root>
<!-- some comment -->
all those comments are fine, but if you went
<!-- some comment -->
<?xml version="1.0"?>
<root >
</root>
this would not be legel.
Gareth
On Fri, 25 Jul 2003, Andreas B. Thun wrote:
> > <?xml version="1.0"?>
> >
> > has to be the first line in the document.
>
> Thx. That was IMHO not the problem. I had
> XML comments in my XML file. Since I have
> removed them, everything is ok.
>
> ----
> How can I add comments in my XML file without
> disturbing the dom parser?
> ----
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE ConstraintTypes SYSTEM "constraint_template.dtd">
> <ConstraintTypes>
> <!-- comments like this are a problem -->
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
Gareth Reakes, Head of Product Development +44-1865-203192
DecisionSoft Limited http://www.decisionsoft.com
XML Development and Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]