Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: open
For a while now, I've been frustrated at the way Dreamweaver 4 handles XHTML documents, including its tendency to think that the XML declaration at the top of each document is a PHP tag.
Well, it seems as if I've found a way around it, and it's so simple I literally kicked myself for not seeing it earlier. To prevent DW4 from choking on the XML declaration, simply add comments around it, like this:
<!-- <?xml version="1.0"?> -->
This has certainly made the wait for Dreamweaver 5 a lot easier! Now I can properly see my page in DW4 without those yellow error tags everywhere, and only need to correct things such as <br /> and <img /> tags (which Dreamweaver doesn't add the end slash to).
At this site: [desiremedia.com...]
you can download a set of Configuration files for Dreamweaver 4 which are tweaked to write XHTML.
They are pretty good for things lkike the closing slash in empty elements like <img />.