Created attachment 192344 [details] Two errors while clicking on the extension button on the toolbar. I'm going to refer to a repository that is mentioned in the LibreOffice documentation and help pages. Consider this code inside the LibreOffice Calc extension: https://github.com/luane-aquino/helloworld-libreoffice-extension/blob/a3f4927b173f41153ddc054ec6ec3a5712b9bafc/HelloWorldLibrary/Module1.xba#L6 The code is in StarBasic macro programming language. It's inside an XML file named `Module1.xba`. Any use of some character combinations would cause errors while running the extension. Some troublemaker character sequences are `<>`, `<=`, and `<=>`. For example, this code line would cause extension launch errors: ``` Print " <=> " ``` Or this one: ``` If 1 <> 2 Then Print "Reached here?" End If ``` The attachment shows two errors thrown while clicking on the extension button on the toolbar. Is it a bug? There shouldn't be some ways of including the StarBasic macro script inside the XML without worrying about some text characters interfering with the XML format and causing launch errors. Maybe I'm missing something.
There should be some ways of including the StarBasic macro script inside the XML without worrying about some text characters interfering with the XML format and causing launch errors. Right?
That is XML. Any text there needs follow the respective rules. < and > are < and > entities, which could be checked by creating some Basic script locally in LibreOffice Basic IDE, and inspecting the resulting files in the user profile. The link that you provided also shows how to encode double quote character using " entity. See: https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references
(In reply to Mike Kaganski from comment #2) > That is XML. Any text there needs follow the respective rules. < and > are > < and > entities, which could be checked by creating some Basic script > locally in LibreOffice Basic IDE, and inspecting the resulting files in the > user profile. > > The link that you provided also shows how to encode double quote character > using " entity. > > See: > https://en.wikipedia.org/wiki/ > List_of_XML_and_HTML_character_entity_references Is there a more convenient way? By any chance.