Page 1 of 1

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

Posted: Fri Oct 25, 2013 1:20 am
by GrenadaV
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

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

Posted: Fri Oct 25, 2013 8:21 pm
by adrian
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

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

Posted: Sat Oct 26, 2013 7:18 am
by GrenadaV
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