Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPPropExchangeXMLNode problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropExchangeXMLNode problem

 Post Reply Post Reply
Author
Message
ericgen34 View Drop Down
Newbie
Newbie


Joined: 16 July 2019
Location: Salisbury
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ericgen34 Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropExchangeXMLNode problem
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.