XML tree in Word Document to appear the same in HTML source file 
Author Message
 XML tree in Word Document to appear the same in HTML source file

I have been using XML data islands in my word document and
want these islands to appear the same in the HTML source
view of the document. In other word, I want XML islands to
appear in the HTML source view file (not in the web
browser) as an XML tree. I have not been successful in
accomplishing this so far. For example, if word document
contains
<parentNode>
        <childNode>Some text</ childNode >
</ parentNode >

The HTML source view file shows this XML island as:

<p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-
font-size:12.0pt'><parentNode><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-
font-size:12.0pt'><span
style='mso-tab-count:1'>                
</span><childNode>Some text</ childNode

Quote:
><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-
font-size:12.0pt'></
parentNode ><o:p></o:p></span></p>

I do not want all those formatting tags in between. I
simply want above HTML source code to look like the
following, in the HTML source file:

<p>
<parentNode>
        <childNode>Some text</ childNode >
</ parentNode >
</p>

Please advise.
Thank you,
CS



Tue, 30 Nov 2004 04:59:23 GMT  
 XML tree in Word Document to appear the same in HTML source file
This is not possible. Word converts what you type to HTML. Word has no
understanding of XML other then the XML it writes for the document meta
data.

Mark Baird

Quote:
> I have been using XML data islands in my word document and
> want these islands to appear the same in the HTML source
> view of the document. In other word, I want XML islands to
> appear in the HTML source view file (not in the web
> browser) as an XML tree. I have not been successful in
> accomplishing this so far. For example, if word document
> contains
> <parentNode>
> <childNode>Some text</ childNode >
> </ parentNode >

> The HTML source view file shows this XML island as:

> <p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-
> font-size:12.0pt'><parentNode><o:p></o:p></span></p>

> <p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-
> font-size:12.0pt'><span
> style='mso-tab-count:1'>
> </span><childNode>Some text</ childNode
> ><o:p></o:p></span></p>

> <p class=MsoNormal><span style='font-size:10.0pt;mso-bidi-
> font-size:12.0pt'></
> parentNode ><o:p></o:p></span></p>

> I do not want all those formatting tags in between. I
> simply want above HTML source code to look like the
> following, in the HTML source file:

> <p>
> <parentNode>
> <childNode>Some text</ childNode >
> </ parentNode >
> </p>

> Please advise.
> Thank you,
> CS



Tue, 30 Nov 2004 10:59:11 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Accessing XML document from a Word document

2. Trying to append a simple XML document as a node in an XML document

3. Creating CSS file when saving a Word document as HTML

4. Print a HTML-document from a VB6-application without the printer dialog appearing

5. XML, Converting Word doc's to XML files (O'2000)

6. HTML/XML/Word 2002

7. Display a VBD file from an ActiveX Document Server DLL in a HTML Document

8. Inserting HTML tags into document source

9. Active Document HTML Source

10. Active Document HTML source

11. Document's HTML source with WebBrowser control?

12. Document's HTML source with WebBrowser control?

 

 
Powered by phpBB® Forum Software