Editing Odc File In C#
I am trying to edit an .odc file in c# i thought it would be simple because its just xml but when i run it and it comes to Load the document xmlDoc.Load('THEFILE.odc') it gives me
Solution 1:
Your .ODC file looks like XML but it's not. It doesn't respect some XML rules. For instance the meta tags are not closed.
<meta name=ProgId content=ODC.Table>
should be
<meta name="ProgId" content="ODC.Table"/>
(notice the quotes and slash added)
And for the first error for Content-Type; it should be :
<meta http-equiv="Content-Type" content="text/x-ms-odc; charset=utf-8"/>
(Content-Type need to be surrounded with quotes (or single quotes)).
I'd suggest you to load directly your .ODC file with HTML Agility Pack or use some cleansing tool before loading it.
Post a Comment for "Editing Odc File In C#"