View Single Post
Old 04-01-2010, 04:06 PM   #16
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by pietvo View Post
Firefox saves the file as is, including the xml declaration. And rightly so, because it saves files verbatim.
Actually, it strips the declaration and leaves the rest of the html untouched.


Quote:
Originally Posted by Strether View Post
It opened just fine in Word 2003, too, but with the special symbols displayed; and if they can be hidden, it would be nice to know how to do that.
I use Word 2007, so not sure if this applies to 2003 as well, but if you right-click a tag and select 'Show XML structure' there's a checkbox labelled 'Show XML tags in the document'.

Alternatively, you can apply an XSLT to the XML in Word. I've attached a very simple one which will just convert the declaration to html. Browse to it in the XML Data Views pane (again, this in Word 2007; 2003 may be different) and apply it to see the document without tags (though Word seems incapable of retrieving style info from an external css in this mode).

In general, it's easiest just to strip the xml declaration if you want to edit these files in Word.
Attached Files
File Type: zip xhtml_to_html.zip (401 Bytes, 210 views)
charleski is offline   Reply With Quote