Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a .docx file that I want to upload with custom syntax for personal understanding. So what I want is that I want to up0load the document and then convert the code inside and save another file as .xml.

For example, in my document, I have:
h1@ Test Heading
h3@ Test Sub-heading
@ Test paragraph

I want the respective .xml output.

What I have tried:

I have actually not tried anything as I don't know how to proceed.
Posted
Updated 10-Apr-18 18:40pm
v2

1 solution

DOCX is actually just a bunch of XML files compressed (ZIPped) into a single file. If you open the file for example with WinZip you can see the actual content.

The standard of the Office Open XML is public. You can start from Office Open XML - Wikipedia[^] and if you need to know the schemas, have a look at [MS-DOCX]: Appendix A: Full XML Schemas[^]
 
Share this answer
 
Comments
Primo Chalice 11-Apr-18 0:50am    
The links have no data anymore.

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

This is showing up on all the three links of "Full XML Schemas"
Primo Chalice 12-Apr-18 0:51am    
Thank you so much :). The links are working now. I hope this helps me out.
Primo Chalice 12-Apr-18 1:01am    
Also, I have seen a macro that works in UEStudio '09 that changes the respective custom tags to their assigned XML tags with just a click/press. A whole page of 50+ lines. I actually want to incorporate the same function in a VB.NET application so that we do not have to use the editor anymore.

Please help.
Wendelius 12-Apr-18 23:10pm    
I'm sorry but I've never used UEStudio '09.

Probably best to open a new question and in the question explain in details what you're trying to do.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900