Quote:Original post by WitchLord Can the XML comments include XML special characters like < > & " etc? Or do you have to escape them?
|
Quote:Original post by evolutional You'd use CDATA sections in the XML to contain your script, this essentially tells the XML parser to 'switch off' parsing until the end of the CDATA section.
|
The XML parser is an inhouse one. It allows < or > or even -- in comments.
It just scan for "-->" for getting the end comment.
First I wanted to implement the code in a CDATA section (as quasar3d has suggested) but our inhouse XML parser would have too been too many modified, and as I'm a little lazzy, the comments jusst has done the trick !
So I'm trying to insert a sample ...
<XPNTree> <CUSTOM> <version>1</version> <author>abrken</author> </CUSTOM> <COMMON> <CODE Name="thefunc" Pure="1"><!--// -------------------------// Global Function : thefunc// -------------------------int thefunc(){ return i--;}--></CODE> <CODE Name="GLOBAL" Pure="1"><!--// ------------------------// Global Function : GLOBAL// ------------------------int i = 0;--></CODE> </COMMON> <PAGE Default="1" File="Animation.xml" Name="page1"> <TIMEOUT Elapse="1"> <NAV Name="page2"/> </TIMEOUT> <OnBeforeStart><!--// ----------------------------------------// page1 : 2) Avant Démarrage Visualisation// ------------------------------------------></OnBeforeStart> <MOUSE> <CIRC Coord="0351,0220,0146,0393"> <EXEC><!--// Add Your AngelScriptCString csFichier;Presenter.FileDialog(true, "Selection fichier", "*.txt", "", "Fichiers Text (*.txt)|*.txt||", 0, csFichier);--></EXEC> </CIRC> </MOUSE> </PAGE> <PAGE File="Animation.xml" Name="page2"> <TIMEOUT Elapse="1"> <NAV Name="page1"/> </TIMEOUT> <OnBeforeStart><!--// ----------------------------------------// page2 : 2) Avant Démarrage Visualisation// ------------------------------------------></OnBeforeStart> </PAGE></XPNTree>