That error at line one can also be caused if you enable the Univ=code Signature on the page.
In Dreamweaver, go to Modify -> Page Properties. Select the Title / Encoding section and un-check the "Include Unicode Signature (BOM)" Option.
for the dynamic test, can you send a copy of one of the pages where the dynamic text does work so it can compare it to the page you sent previously.