Can we comment in keymap.xml?
#1
I add this to my keymap.xml:

Code:
<keymap>

    <!-- Adds the ability to jump through music and video lists -->
    <!-- by using SMS input with the number keys. Adds ability to -->
    <!-- jump straight to sections with F9, F10, F11, F12 -->
    <global>
        <keyboard>
            <two>JumpSMS2</two>
            <three>JumpSMS3</three>
            <four>JumpSMS4</four>
            <five>JumpSMS5</five>
            <six>JumpSMS6</six>
            <seven>JumpSMS7</seven>
            <eight>JumpSMS8</eight>
            <nine>JumpSMS9</nine>
            <F9>XBMC.ActivateWindow(MyVideos)</F9>
            <F10>XBMC.ActivateWindow(MyMusic)</F10>
            <F11>XBMC.ActivateWindow(MyPictures)</F11>
            <F12>XBMC.ActivateWindow(Home)</F12>
        </keyboard>
    </global>

...

It works, but my log is full of these errors on startup:

ERROR: Window Translator: Can't find window adds the ability to jump through music and video lists
ERROR: Window Translator: Can't find window by using sms input with the number keys. adds ability to
ERROR: Window Translator: Can't find window jump straight to sections with f9, f10, f11, f12
Reply
#2
well, yes. this is an artifact caused by us processing all xml entries - even comments. the errors are harmless as such, although granted, not very elegant Smile

trac at will
Reply
#3
spiff Wrote:well, yes. this is an artifact caused by us processing all xml entries - even comments. the errors are harmless as such, although granted, not very elegant Smile

trac at will

Thanks. It doesn't bother me enough since I rarely look at the log. Big Grin

I just wanted to make sure I wasn't going to break something.
Reply
#4
r20163 should take care of it. Thanks for the report!

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#5
I was having a devil of time with this.  Keymap.xml was failing to load, with errors such as: "Error getting keymap root."  Turns out that the comments syntax was off.  I had comments ending with:
:
--!>
while of course it should have been:
:
-->
That was enough to throw up the errors.  Hope that helps others. Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Can we comment in keymap.xml?0