1. Daniel Mullings
  2. PowerBuilder
  3. Monday, 13 July 2020 16:51 PM UTC

Good day!

I'm trying to create a ribbonmenu out of the current menu I have in our application and I'm running into a couple of errors.  I'm using Bruce's ribbon bar menu generator in code exchange and the IDE is showing an error in the code.

'"' is an unexpected token.  The expected token is ';'. Line 7, position 28.

That error line looks the same as the one below which seems to be fine.

I copied and pasted the XML into notepad++ to try to see whether the XML was malformed, but it looks fine.  Though when I saved it, I received an error, "XML parsing error at line 514" EntityRef: expecting ';'.

I'm not that familiar with XML, so I could use some help.

The XML file has been attached to this post.

 PB2019 R2 Build 2328

Thanks!

Attachments (1)
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 13 July 2020 21:29 PM UTC
  2. PowerBuilder
  3. # 1

Hi Damiel;

   FWIW: I think that you will need to contact Bruce on that one.

Regards  ... Chris

Comment
There are no comments made yet.
René Ullrich Accepted Answer Pending Moderation
  1. Tuesday, 14 July 2020 05:41 AM UTC
  2. PowerBuilder
  3. # 2

Hi Daniel,

there are several problems with your XML.

  • You can't use the "&" char in the Text property. If you need them use "&" instead.
  • Your <ApplicationMenu> is wrong. You can have (main) items (like "File") with sub items (like "Open"). But this sub items may not have sub items.

I don't know Bruce's ribbon bar menu generator. You menu looks like generated from a PowerBuilder menu. RibbonBar menus have some restrictions so a direct transformation is not always possible.

HTH,

René

Comment
There are no comments made yet.
Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 14 July 2020 09:37 AM UTC
  2. PowerBuilder
  3. # 3

Hi Daniel,

  1. The specific character '&' cannot be used directly in the XML and it does not conform with the XML syntax. You need to replace all '&' with '&amp;' or with empty strings in your XML file.

 

  1. The RibbonMenu can contain menu items with no more than two levels, so you need to delete or comment the content of the third level in your XML file. You can refer to the following link for details:

https://docs.appeon.com/pb2019r2/pbug/ch13s01.html

 

I have attached a new modified XML file, which originated from the XML file you provided. You can test this XML file on your side and see if it works.

 

Regards,

Attachments (1)
Comment
There are no comments made yet.
Marcelo Gil Accepted Answer Pending Moderation
  1. Tuesday, 14 July 2020 12:47 PM UTC
  2. PowerBuilder
  3. # 4

I had the same inconvenience. I tried to remove the & but it doesn't work. I will keep trying

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.