Class ContentControlsXmlEdit

java.lang.Object
org.docx4j.samples.ContentControlsXmlEdit

public class ContentControlsXmlEdit extends Object
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 Details

    • context

      public static jakarta.xml.bind.JAXBContext context
  • Constructor Details

    • ContentControlsXmlEdit

      public ContentControlsXmlEdit()
  • Method Details