Print Page | Close Window

CXTPDockingPaneLayout::LoadFromFile failure

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=14471
Printed Date: 06 June 2025 at 10:49pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPDockingPaneLayout::LoadFromFile failure
Posted By: tuno
Subject: CXTPDockingPaneLayout::LoadFromFile failure
Date Posted: 08 June 2009 at 3:17pm
I have code that looks like this:

   CXTPDockingPaneLayout layoutNormal( &m_paneManager );

   BOOL bSuccess = layoutNormal.LoadFromFile( filename, layoutname );

I've used this code with success for quite some time, and when I recently tried to enhance the program to load various layouts from various files, I ran into a situation where a valid file name results in a load failure with the following message in the debugger's output window:

Warning: CXTPPropExchangeXMLNode::LoadFromString failed. ParseError.Reason = Only one top level element is allowed in an XML document.

The file being loaded is the same file I've already loaded successfully many times and has only one top level node, so I'm puzzled about the "only one top level element ..." message.

Help ... ?

-ted in AZ



Replies:
Posted By: Oleg
Date Posted: 09 June 2009 at 2:04am
Hi,
Send to mailto:support@codejock.com - support@codejock.com this XML file that generates such error.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: tuno
Date Posted: 09 June 2009 at 8:34am
I cannot -- the code is in a "secure environment".

The XML file is one of the ones created by the SaveToFile() method, without modification.


Posted By: tuno
Date Posted: 09 June 2009 at 8:58am
Oleg I have an update to my question. After fixing a seemingly unrelated problem elsewhere in my code, the LoadFromFile() method now works how I expect it to (!).

But a new problem is that my application's panes are not being restored properly according to the loaded layout -- it does not undock/redock panes according to what's in the layout file. I'm new at using CodeJock so I'm in the process of walking through our code in more detail (I'm the maintainer, not the author), but if you happen to have any quick ideas, I would be most thankful!

-ted


Posted By: kstowell
Date Posted: 09 June 2009 at 1:22pm
Please submit your request to mailto:support@codejock.com - support@codejock.com so we can verify your product license, thanks!

-------------
Kirk Stowell, President and CEO
CODEJOCK SOFTWARE SOLUTIONS<



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