How to add a specific keyboard layout in LXDE?

55

This might help. Basically it says to put a keyboard config on the main panel and then use it to change your layout.

Share:
55

Related videos on Youtube

Hitesh Bhutani
Author by

Hitesh Bhutani

Updated on September 18, 2022

Comments

  • Hitesh Bhutani
    Hitesh Bhutani over 1 year

    I have a situation here where I need to parse the following xml:

    <Attributes>
        <Map>
            <entry key="band" value="25" />
            <entry key="triggerSnapshots">
                <value>
                    <Map>
                        <entry key="AttributeChange">
                            <value>
                                <Attributes>
                                    <Map>
                                        <entry key="band" value="45" />
                                    </Map>
                                </Attributes>
                            </value>
                        </entry>
                        <entry key="ManagerTransfer" value="7262079" />
                        <entry key="needsCreateProcessing">
                            <value>
                                <Boolean>true</Boolean>
                            </value>
                        </entry>
                    </Map>
                </value>
            </entry>
        </Map>
    </Attributes>
    

    Questions:

    1. In the above xml I need to pickup the value for the band=25 entry key and not band=45 entry key. When I parse my xml using:

      NodeList nodes = doc.getElementsByTagName("entry");

    I first get band value as 25 and store it in map, then when I get band value as 45 the band value 25 in the map gets overwritten by 45. I only need to parse the xml in a way that I get the band value as 25 and not as 45.

    • Gary Y Kim
      Gary Y Kim about 8 years
      if xml is not large, then I recommend XPath parser..in which you can put the whole path like XPath xpath = XPathFactory.newInstance().newXPath(); map = (String)xpath.evaluate("/Attributes/Map/entry/value/Map", doc, XPathConstants.STRING);
    • Srinath Ganesh
      Srinath Ganesh about 8 years
      Is there a limit for this nesting ?