Developer forum

Forum » Templates » Navigation XML

Navigation XML


Reply
Hi,



Is there any way that I can get the full XML output of the menu structure?



this would the XSLT crafting a lot easier if it could be done in an external editor like XMLspy.



Regards

Morten

Replies

 
Nicolai Høeg Pedersen
Reply

Hi Morten


 


Add &SaveXml=True to your URL and Dynamicweb will generate a xml file in /Templates/Navigation/Navigationdata#.xml where # is an ID.


 


IE. http://developer.dynamicweb.dk/?SaveXml=True


 

 
Reply
thank you very much



I tried it out and it worked.



Are you using XSLT 1 or 2?
 
Nicolai Høeg Pedersen
Reply

Hi


 


Glad it worked.


 


Not sure what you mean about version 1 or 2 i XSLT. Dynamicweb uses .NET 2.0 XSLT parsing and it can take the versions supported by the .NET framework. XSLT 2 i still in recommendation, so I would not use it - but if it works it works. Dynamicweb will not stop it from working.

 
Reply
NP wrote:


Hi Morten




Add &SaveXml=True to your URL and Dynamicweb will generate a xml file in /Templates/Navigation/Navigationdata#.xml where # is an ID.




IE. http://developer.dynamicweb.dk/?SaveXml=True


Do you need to add some sort of write permissions somewhere for this to work? I've tried to add the ?SaveXml=True to both the basic url of our test site, and also to a specific page - no matter what, I cant get it to create any file in /Templates/Navigation

 

You must be logged in to post in the forum