Print Page | Close Window

CXTPPropExchangeXMLNode problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=23879
Printed Date: 28 April 2024 at 11:57am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPropExchangeXMLNode problem
Posted By: ericgen34
Subject: CXTPPropExchangeXMLNode problem
Date Posted: 16 July 2019 at 11:09am
Hi,

I am using this component to load a file that is formatted for human reading, hence with indents and new lines. However on reading this file, fields like:
<node>
<Culture>
</Culture>
</node>
read using:
PX_String(pPX, _T("Culture"), m_strCulture);
gives me:
m_strCulture = "\n\t"
Which is wrong for me as it should be blank. I found out that it is because in 
CXTPPropExchangeXMLNode::CreateDocumentInstance()
There is the line:
m_xmlDocPtr->put_preserveWhiteSpace(VARIANT_TRUE);
I can turn it off after reading the file with
px.GetDocumentPtr()->put_preserveWhiteSpace(VARIANT_FALSE);

but it seems odd to me that this should be the default, and that no options are provided to turn it off when creating the CXTPPropExchangeXMLNode

Is it a bug or is there something that escapes me?

Thanks



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net