Bug? XML doesn't support special chrs in comments

Discussion in 'B4R Bugs & Wishlist' started by Starchild, Feb 5, 2018.

  1. Starchild

    Starchild Active Member Licensed User

    I can't find a way of using < (less-than) and > (greater-than) characters in comment text inside the library XML for B4R.

    I see that B4J's library XML supports &lt; and &gt;
    but this is not supported in the B4R library XML file.

    I am tryng to add a demonstration PHP script to the comments.
    Can't get the text "<?php ... ?>" to display in the IDE pop-up.
     
    Last edited: Feb 5, 2018
  2. Erel

    Erel Administrator Staff Member Licensed User

    Works fine here.
    [​IMG]

    I've added it to the .h file with:
    //Scans for wireless networks. Returns the number of networks found.
    //&lt; test
    Byte Scan();

    It looks like this in the XML file (which you normally shouldn't update yourself):
    <method>
    <name DesignerName="Scan">Scan</name>
    <comment>Scans for wireless networks. Returns the number of networks found.
    &amp;lt; test</comment>
    <returntype>Byte</returntype>
    </method>
     
  3. Starchild

    Starchild Active Member Licensed User

    I have been manually editing my XML files for B4R.
    I see the ampersand chr itself must be represented by &amp;
    All works fine now.
    Thanks
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice