Brilliant Ted ! NodeValue did the trick
Thanks again
Paul
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Ted Roche Sent: 08 April 2016 16:09 To: profoxtech@leafe.com Subject: Re: MSXML.DomDocument
On Fri, Apr 8, 2016 at 10:46 AM, Paul Newton Paul.Newton@pegasus.co.uk wrote:
<Bank id="1" name=" None" styleid="0" ></Bank> Note the leading space
So, you need the prefixed blank spaces in the name value preserved?
As best as I can figure, this is all that's known about the subject:
I'd take a look at casting xml:space=preserve directly in the bank element, to see if that would like you find the spaces in the name while not messing up the rest of the document structure.
But there's a few other links there that might have better suggestions. The stackoverflow link is pretty confusing, but using the nodeValue link instead of the Text might do the trick.
-- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com
[excessive quoting removed by server]