Page 1 of 1

xhtml->docx->xhtml retain div ids?

PostPosted: Sat Sep 06, 2014 7:39 am
by Joobie
Hi Jason,

I'm attempting to export some CKEditor created fields from a database, convert them to a docx using Xhtml Import, edit the text content, then convert it back to xhtml and insert those fields back into the database.

The xhtml structure is like
Code: Select all
<html><body>
<div id="database-field-1" class="field-section">
    <label>database-field-1</label>
    <div class="field-content">xyz</div>
</div>
<div id="database-field-2" class="field-section">
    <label>database-field-2</label>
    <div class="field-content">xyz</div>
</div>
etc...


So when I do the conversions, I would like to retain the id's so when I try am ready to import again I can update the database based on them... Do you have an example or suggestion?

Thanks!

Re: xhtml->docx->xhtml retain div ids?

PostPosted: Sat Sep 06, 2014 9:16 am
by jason
Also asked on StackOverflow. Please don't crosspost.