I'm doing some work with the Aspose.Pdf component in .net at the moment.
I'm utilising the XML templating to generate PDF documents and I have ran into a problem.
Lets say I have the following XML:
<?xml version="1.0" encoding="utf-8" ?>
I'd like to join the two segments together, which would give me "Hello World!", however the leading space in the second segment is being removed, thus giving me "HelloWorld!". I know I could move the leading space into the first segment at the end and it would work fine, but I'm looking to replace the content of segments at runtime without adding trailing spaces.
I've tried wrapping up the content in the second segment in a CDATA but that doesn't help.
Anyone got any ideas on how to achieve/get around this?