Print Page | Close Window

Import XML in designer

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=3831
Printed Date: 10 November 2025 at 7:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Import XML in designer
Posted By: yoavo
Subject: Import XML in designer
Date Posted: 22 March 2006 at 3:22am

Hi,

I am trying to import an XML customization file in the Designer Studio but I get a failure message box. It also happens in Xtreme samples which uses XML layout mechanism (such as GUI_Whidbey and Grep).




Replies:
Posted By: Oleg
Date Posted: 22 March 2006 at 7:31am

Hello,

Just replace root section in text Editor to DesignerFile.



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


Posted By: yoavo
Date Posted: 22 March 2006 at 8:46am

Hi,

I replaced the root section. Now I dont get the error message, but I get an empty Form (without menu or toolbar). I attached an .xml file of the "Grep" sample after I edit the root section. https://forum.codejock.com/uploads/yoavo/2006-03-22_084639_GrepD.zip - 2006-03-22_084639_GrepD.zip  



Posted By: Oleg
Date Posted: 22 March 2006 at 10:03am

Now you have two CommandBars sections:

must be:

 

<?xml version="1.0" encoding="UTF-8"?>
<DesignerFile CompactMode="1">
  <CommandBars>
     <CommandBar Class="CXTPMenuBar" Type="0" BarID="1"

...

 </CommandBars>
  <Layout>

   ...
  </Layout>
</DesignerFile>



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


Posted By: yoavo
Date Posted: 29 March 2006 at 9:15am

I removed the extra "CommandBars" section, but still the import operation results an empty forum. I attached my new .xml file. https://forum.codejock.com/uploads/yoavo/2006-03-29_091509_GrepD.zip - 2006-03-29_091509_GrepD.zip

 



Posted By: Oleg
Date Posted: 29 March 2006 at 9:29am
Now you deleted Layout section :)

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


Posted By: yoavo
Date Posted: 29 March 2006 at 10:10am
thanks, now I get a good forum. (I thought that the Layout section was obsolete...)


Posted By: yoavo
Date Posted: 30 March 2006 at 7:24am

Hi,

I have an .xml file which contains several layouts (of commandbars). Can I import this xml file to the Designer ?

If yes, what should be the structure of the file ?

I tried to right it like this: (but it didnt load ok)

<?xml version="1.0" encoding="UTF-8"?>
<DesignerFile CompactMode="1">
  <MyLayout1>
    <CommandBars>
      <CommandBar Class="CXTPMenuBar" Type="0" BarID="1"

...

    </CommandBars>
  </MyLayout1>
  <MyLayout2>
    <CommandBars>
      <CommandBar Class="CXTPMenuBar" Type="0" BarID="1"

...

    </CommandBars>
  </MyLayout2>
  <Layout>

   ...
  </Layout>
</DesignerFile>

 



Posted By: Oleg
Date Posted: 30 March 2006 at 10:20am

You can import only single layout.

remove <MyLayout1>  </MyLayout1>



-------------
Oleg, Support Team
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