Tutorial Videos

Tutorial videos are available here.

Knowledge Base

Visit our User Forum for discussions & solutions

GetValidXmlElementName – XpressDox

The EscapeForXML and GetValidXMLElementName functions are used in the context where the XpressDox template is needed to generate XML.  (By the way, this demonstrates the power of XpressDox in being able to produce not just Word documents, but also text and, in this case, transform XML from one format into another).

«EscapeForXml(Text)» will translate XML reserved characters in the data element Text to their escaped values.  I.E.

< becomes &lt;
> becomes &gt;
& becomes &amp;


«GetValidXmlElementName(Description,'_and_')» will build a value from data element Description which is a valid XML element name, translating any ‘&’ characters to the string ‘_and_’.

Here follows a snippet from a template which converts an XML answer set produced by a well known document assembly system into an XpressDox data set:


«If(TextValue != ”)»
«If(NumValue != ”)»
«If(TFValue != ”)»
«End(ForEach Answer)»

These functions are available in version 4 (and later) of XpressDox.