Pregled posta

Adresa bloga: https://blog.dnevnik.hr/spireexcel

Marketing

Conversion between Word and XML with VB.NET

When talking about XML, we may think of HTML. Yes, the two languages are similar and they are based on markup and used to deliver information on Web. But comparing with HTML, XML don’t define the used markup in advance.
One XML file contains two parts: preamble code and root element. Preamble code includes XML statement, processing instruction and architecture statement. Root element is the main part of XML file and includes data and information which is used to describe the data structure. Besides, XML can contain annotations, which provide essential explanation of XML source code.
Sometimes, we may need to import data to XML files from database or other format files which can be used to save data. Also, we may convert other files to XML files, for example, Word to XML.
About converting Word to XML, the easiest way is to save an existing Word document as XML file. However, developers often need to convert Word to XML with VB.NET. And there is a simple way to realize the conversion by using VB.NET.

"http://www.infinity-loop.de/DTD/upcast/4.0/upcast.dtd">

xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:html="http://www.w3.org/HTML/1998/html4"
xml:lang="en"
style="widows: 0; orphans: 0; word-break-inside: normal; \-ilx-block-border-mode: merge;">






Hello world!

// You Can Convert Each Hyperlink from the Word Document into XML Document.
e-mail:
xlink:show="replace"
xlink:actuate="onRequest"
xlink:href="mailto:simpson@polaris.net">
...



//You Can Convert Each Bookmarks from the Word Document into XML Document.
xlink:actuate="onLoad"
xlink:href="#theThirdItem" ...>3

//You Can Convert Each Images from Word Document into XML Document.
xlink:show="embed"
Sometimes, we need to convert a large amount of Word documents to XML files. If we want to convert them as soon as possible, we may use the third party add-in. I know one named Spire.Doc which can realize the functions in Word without Microsoft Word being installed and the conversion between Word and XML, PDF or HTML.



Post je objavljen 10.02.2011. u 09:11 sati.