# X Element Formatter Use the [X Element Formatter](xref:UnityEngine.Localization.SmartFormat.Extensions.XElementFormatter) to write the contents of [XElement](https://docs.microsoft.com/en-us/dotnet/api/system.xml.linq.xelement) values into the format string. ![Diagram showing the breakdown of the Smart String and how each part is evaluated.](../images/SmartString-XmlSyntax.dot.svg) | **Example Smart String** | **Arguments** | **Result** | |--------------------------|-------------------------------------------------------------------|---------------------------| | {0:xml()} | `some valuesome other value` | Somevaluesome other value | | {0.value} | | Some value |