java - How to read variables from the word document using docx4j? -


i want variables(${colour}) list , pass variables dynamically.is possible variables list.

thanks

you'll have write code yourself.

three approaches:

  1. use textutils text, , parse ${
  2. use xpath
  3. use traverse utils

all 3 of these documented further in docx4j's getting started.

method 1 simplest, guess.

could variables in headers/footers/footnotes/endnotes? if so, note these separate "parts", , need handled.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -