J
Jan Kucera
Hi all,
I want to mark a fragment of the document to be able to populate it with
data. I'm afraid I have no chance in standard word document, have I? But I
have a little hope that I can do that in WordML format. Here is what I want
to do, for simplicity in HTML:
<table>
<tr><td>Head1</td><td>Head2</td></tr>
<tr><td>{dataFromHead1}</td><td>{dataFromHead2}</td></tr>
</table>
I expect that the user select the second row in the table (with {data...}
text) and press a MARK button, which results in saving this document:
<table>
<tr><td>Head1</td><td>Head2</td></tr>
<MARKED
source="MySource"><tr><td>{dataFromHead1}</td><td>{dataFromHead2}</td></tr></MARKED>
</table>
And as you expect, I would later process the file like this:
<table>
<tr><td>Head1</td><td>Head2</td></tr>
<tr><td>Data11</td><td>Data21</td></tr>
<tr><td>Data12</td><td>Data22</td></tr>
<tr><td>Data13</td><td>Data23</td></tr>
</table>
Is there any way how to get the XML node of selection and modify it
accordingly or any other idea?
Thank you,
Jan
I want to mark a fragment of the document to be able to populate it with
data. I'm afraid I have no chance in standard word document, have I? But I
have a little hope that I can do that in WordML format. Here is what I want
to do, for simplicity in HTML:
<table>
<tr><td>Head1</td><td>Head2</td></tr>
<tr><td>{dataFromHead1}</td><td>{dataFromHead2}</td></tr>
</table>
I expect that the user select the second row in the table (with {data...}
text) and press a MARK button, which results in saving this document:
<table>
<tr><td>Head1</td><td>Head2</td></tr>
<MARKED
source="MySource"><tr><td>{dataFromHead1}</td><td>{dataFromHead2}</td></tr></MARKED>
</table>
And as you expect, I would later process the file like this:
<table>
<tr><td>Head1</td><td>Head2</td></tr>
<tr><td>Data11</td><td>Data21</td></tr>
<tr><td>Data12</td><td>Data22</td></tr>
<tr><td>Data13</td><td>Data23</td></tr>
</table>
Is there any way how to get the XML node of selection and modify it
accordingly or any other idea?
Thank you,
Jan