Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

Commenting XML Code

Is there a way to comment (disable) some lines of XML code. Without a compiler and there is an error (spelling mistake) then no details are displayed on the ribbon. Also is there a way of inserting labels in the XML code for documentation and to locate specific areas in the XML code. Using the SRP editor in XML mode. I have just started testing the Ribbon Control and already have 470 line of code.

TIA

Chris

Comments

  • Chris,

    The syntax for comments in XML is:
    <!-- My Comment -->So, to comment out a chunk of XML, you might do something like this:
    <!--Tab> ... </Tab-->
  • Chris,

    You may want to start storing your XML init strings into separate records, not unlike the way the Banded Report Writer stores report layouts. You could also define it as an INSERT if you want to keep it in SYSPROCS and simply strip off the header in your code before using the body. This way your actual code will be far less cluttered and this should make it easier to maintain.
Sign In or Register to comment.