Package org.docx4j.samples
Class ContentControlsXmlEdit
java.lang.Object
org.docx4j.samples.ContentControlsXmlEdit
This sample demonstrates setting the XML content of
an Custom XML part, then populating content controls
from that (based on the xpaths given
in the content controls).
Word does this itself automatically, but if you
have a Word document containing content controls,
this sample demonstrates how you could
populate those programmatically. You might
then use docx4j to generate a pdf or an html.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
context
public static jakarta.xml.bind.JAXBContext context
-
-
Constructor Details
-
ContentControlsXmlEdit
public ContentControlsXmlEdit()
-
-
Method Details
-
main
- Parameters:
args-- Throws:
Exception
-