XML Newbie - How to make tables in Word to specific XML form

Questions about XML that are not covered by the other forums should go here.
GrenadaV
Posts: 6
Location: New Zealand

XML Newbie - How to make tables in Word to specific XML form

Fri Oct 25, 2013 1:20 am

Hi,
I m totally new to XML and yet I find myself in situation where I need to get some tables in a Word document and make them XML in this format.....and of course they want it yesterday :( it is for a glossary in an adobe file....

This is the format..

<XMLBit>
   <term>
     <label>Hello</label>
     <def>There</def>
  </term>
  <term>
     <label>Just</label>
     <def>A Test</def>
  </term>
</XMLBit>

Any help much appreciated thanks....:-)

Cheers
Rossco
adrian
Posts: 2461

Re: XML Newbie - How to make tables in Word to specific XML

Fri Oct 25, 2013 8:21 pm

Hi,

Create a new XML document (File > New) with the exact content of the sample format you have mentioned.
Switch to grid mode (Document > Edit Mode > Grid).
Expand the nodes until you reach a tabular structure (you should have label and def as columns and term as rows).
Copy content (multiple cells, columns) from the tables in the Word document and paste it in the desired location from the grid (you can paste over the test data).

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
GrenadaV
Posts: 6
Location: New Zealand

Re: XML Newbie - How to make tables in Word to specific XML

Sat Oct 26, 2013 7:18 am

Hi Adrian,
thanks for your reply, much appreciated.

We ended up copying and pasting everything from the word tables into excel, then generating an XML document from within excel.

Ran out of time so needed to act quick as..

Cheers
Rossco

Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 0 guests