HighTechTalks DotNet Forums  

Word 2007 XML to HTML

Dotnet XML microsoft.public.dotnet.xml


Discuss Word 2007 XML to HTML in the Dotnet XML forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
slaprade
 
Posts: n/a

Default Word 2007 XML to HTML - 10-06-2007 , 12:47 AM






I'm not sure this is the correct locqation to post this question but I have
already posted similar question in Office news group (without response)

I am using VS2005 to create a solution for Word 2007. This version of Word
no longer supports HTML as previous versions did. To maintain compatability
with previous solution written for previous versions of Word, I need the HTML
content of a document that Word previously acquired with

MyStr = ActiveDocument.HTMLProject.HTMLProjectItems(1).Tex t

Word produces an XML file using "activedocument.content" so I'm thinking
that maybe there is something in XMLdeserialization that would help convert
this to HTML or at least allow me to loop through the various elements of the
XML file so that I could create the HTML outout

I have no experience with XML functions in VS2005 and feel completely lost
trying to understand it all from the help screens

Any suggsetions?


Reply With Quote
  #2  
Old   
Joe Fawcett
 
Posts: n/a

Default Re: Word 2007 XML to HTML - 10-06-2007 , 06:24 PM






"slaprade" <slaprade (AT) discussions (DOT) microsoft.com> wrote

Quote:
I'm not sure this is the correct locqation to post this question but I
have
already posted similar question in Office news group (without response)

I am using VS2005 to create a solution for Word 2007. This version of Word
no longer supports HTML as previous versions did. To maintain
compatability
with previous solution written for previous versions of Word, I need the
HTML
content of a document that Word previously acquired with

MyStr = ActiveDocument.HTMLProject.HTMLProjectItems(1).Tex t

Word produces an XML file using "activedocument.content" so I'm thinking
that maybe there is something in XMLdeserialization that would help
convert
this to HTML or at least allow me to loop through the various elements of
the
XML file so that I could create the HTML outout

I have no experience with XML functions in VS2005 and feel completely lost
trying to understand it all from the help screens

Any suggsetions?

Well in theory you could transform the XML to HTML but my version of Word
2007 certainly permits saving as HTML. Go to Save As | Other Formats. It
supports web archive of HTML page.


--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name




Reply With Quote
  #3  
Old   
slaprade
 
Posts: n/a

Default Re: Word 2007 XML to HTML - 10-07-2007 , 10:19 AM



I appreciate the response - the problem is that I am not saving a file. I
store contents in a SQL database and as such have no need and devilish
difficulty to read or write a file

"Joe Fawcett" wrote:

Quote:
"slaprade" <slaprade (AT) discussions (DOT) microsoft.com> wrote in message
news:30AF598A-BB66-4B1E-90AA-4083D05C53BD (AT) microsoft (DOT) com...
I'm not sure this is the correct locqation to post this question but I
have
already posted similar question in Office news group (without response)

I am using VS2005 to create a solution for Word 2007. This version of Word
no longer supports HTML as previous versions did. To maintain
compatability
with previous solution written for previous versions of Word, I need the
HTML
content of a document that Word previously acquired with

MyStr = ActiveDocument.HTMLProject.HTMLProjectItems(1).Tex t

Word produces an XML file using "activedocument.content" so I'm thinking
that maybe there is something in XMLdeserialization that would help
convert
this to HTML or at least allow me to loop through the various elements of
the
XML file so that I could create the HTML outout

I have no experience with XML functions in VS2005 and feel completely lost
trying to understand it all from the help screens

Any suggsetions?

Well in theory you could transform the XML to HTML but my version of Word
2007 certainly permits saving as HTML. Go to Save As | Other Formats. It
supports web archive of HTML page.


--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name




Reply With Quote
  #4  
Old   
Scott M.
 
Posts: n/a

Default Re: Word 2007 XML to HTML - 10-09-2007 , 03:44 PM



Not to mention that you should ALWAYS stay as far away as you can from the
MS Office applications "Save As Web Page (HTML)" feature as it creates the
most bloated HTML, CSS, XHTML ever!


"slaprade" <slaprade (AT) discussions (DOT) microsoft.com> wrote

Quote:
I appreciate the response - the problem is that I am not saving a file. I
store contents in a SQL database and as such have no need and devilish
difficulty to read or write a file

"Joe Fawcett" wrote:

"slaprade" <slaprade (AT) discussions (DOT) microsoft.com> wrote in message
news:30AF598A-BB66-4B1E-90AA-4083D05C53BD (AT) microsoft (DOT) com...
I'm not sure this is the correct locqation to post this question but I
have
already posted similar question in Office news group (without response)

I am using VS2005 to create a solution for Word 2007. This version of
Word
no longer supports HTML as previous versions did. To maintain
compatability
with previous solution written for previous versions of Word, I need
the
HTML
content of a document that Word previously acquired with

MyStr = ActiveDocument.HTMLProject.HTMLProjectItems(1).Tex t

Word produces an XML file using "activedocument.content" so I'm
thinking
that maybe there is something in XMLdeserialization that would help
convert
this to HTML or at least allow me to loop through the various elements
of
the
XML file so that I could create the HTML outout

I have no experience with XML functions in VS2005 and feel completely
lost
trying to understand it all from the help screens

Any suggsetions?

Well in theory you could transform the XML to HTML but my version of Word
2007 certainly permits saving as HTML. Go to Save As | Other Formats. It
supports web archive of HTML page.


--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name






Reply With Quote
  #5  
Old   
Phil Fearon
 
Posts: n/a

Default Re: Word 2007 XML to HTML - 10-12-2007 , 06:14 PM



Saving a Word 2007 document as 'Web Page, Filtered' in Word 2007 gets rid of
a lot of the 'bloat'. I imagine a similar feature is available for Word XP
and Word 2003. CSS, VML options etc can be controlled through the 'web
options' dialog (main > word options > advanced > web obtions).

Word 2007 was not designed as an HTML editor. But with good use of styles
and CSS, the filtered HTML output is, in my view, not too bad for certain
restricted uses.


"Scott M." wrote:

Quote:
Not to mention that you should ALWAYS stay as far away as you can from the
MS Office applications "Save As Web Page (HTML)" feature as it creates the
most bloated HTML, CSS, XHTML ever!


"slaprade" <slaprade (AT) discussions (DOT) microsoft.com> wrote in message
news:8EB11D82-1DD2-4937-A8F5-4506C7A1560D (AT) microsoft (DOT) com...
I appreciate the response - the problem is that I am not saving a file. I
store contents in a SQL database and as such have no need and devilish
difficulty to read or write a file

"Joe Fawcett" wrote:

"slaprade" <slaprade (AT) discussions (DOT) microsoft.com> wrote in message
news:30AF598A-BB66-4B1E-90AA-4083D05C53BD (AT) microsoft (DOT) com...
I'm not sure this is the correct locqation to post this question but I
have
already posted similar question in Office news group (without response)

I am using VS2005 to create a solution for Word 2007. This version of
Word
no longer supports HTML as previous versions did. To maintain
compatability
with previous solution written for previous versions of Word, I need
the
HTML
content of a document that Word previously acquired with

MyStr = ActiveDocument.HTMLProject.HTMLProjectItems(1).Tex t

Word produces an XML file using "activedocument.content" so I'm
thinking
that maybe there is something in XMLdeserialization that would help
convert
this to HTML or at least allow me to loop through the various elements
of
the
XML file so that I could create the HTML outout

I have no experience with XML functions in VS2005 and feel completely
lost
trying to understand it all from the help screens

Any suggsetions?

Well in theory you could transform the XML to HTML but my version of Word
2007 certainly permits saving as HTML. Go to Save As | Other Formats. It
supports web archive of HTML page.


--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name







Reply With Quote
  #6  
Old   
Scott M.
 
Posts: n/a

Default Re: Word 2007 XML to HTML - 10-12-2007 , 11:40 PM



Quote:
Word 2007 was not designed as an HTML editor. But with good use of styles
and CSS, the filtered HTML output is, in my view, not too bad for certain
restricted uses.
IMHO, I disagree (and I know there are many pros. out there that feel the
same way). For mom and pop, it's fine, but pros. are going to have a real
HTML editing environment available to them, so there's no reason to use Word
for HTML.




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.