Java Question Source code, xml and documentation?

tchart

Well-Known Member
Licensed User
Longtime User
Erel,

Im writing a library in which I have a method which returns a B4A list object.

B4X:
public List getDevices()
    {
        List L = new List();
        L.Initialize();
        //Do some stuff
        return L;      
    }

Im now trying to use warwounds xml2bb tool (http://b4a.martinpearman.co.uk/xml2bb/) to generate the documentation but it is throwing an error. I traced the error down to the method above so I checked the XML and it says it is a property and not a method;

B4X:
        <property>
            <name>Devices</name>
            <returntype>anywheresoftware.b4a.objects.collections.List</returntype>
            <comment>It returns the list of devices.</comment>
        </property>

Why is this? My other methods are fine, its just this one (which happens to return a B4A object).

The XML is being generated through SLC.

Thanks
 
Last edited:

tchart

Well-Known Member
Licensed User
Longtime User
Actually just resolved it. The problem was the apostrophe in the word "doesn't"

Just in case people run into the same thing the error was;

An error occurred while trying generate the BB code: String could not be parsed as XML
 
Top