With
- Code: Select all
...
SdtPr sp1...
...
Alias a1 = factory.createSdtPrAlias();
a1.setVal("Alias");
sp1.getRPrOrAliasOrLock().add(a1);
....
i get
- Code: Select all
[com.sun.istack.internal.SAXException2: unable to marshal type "org.docx4j.wml.SdtPr$Alias" as an element because it is missing an @XmlRootElement annotation]
And true, cause the @XmlRootElement annotationis given to the SdtPr itself.
But how else can i set the Alias ?
did you forget to make a SdtPr.setAlias() method like with setTag or someth?