CXTPPropExchangeXMLNode problem |
Post Reply |
Author | |
ericgen34
Newbie Joined: 16 July 2019 Location: Salisbury Status: Offline Points: 6 |
Post Options
Thanks(0)
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
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |