LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-04-2011, 12:22 AM   #1
quexxon-12
LQ Newbie
 
Registered: Jun 2011
Location: US
Distribution: Arch
Posts: 3

Rep: Reputation: Disabled
openbox - menu.xml - syntax error


I've been working on openbox's menu.xml (~/.config/openbox/menu.xml) and when I attempt to restart openbox I get the following error message...

"One or more XML syntax errors were found while parsing the Openbox configuration files. See stdout for more information. The last error seen was in file "/home/will/.config/openbox/menu.xml" line 47, with message: Extra content at the end of the document"

I have poured over the openbox documentation and my configuration file time and time again and I cannot find the syntax error. Does anyone have any ideas or see a syntax error that I am overlooking? My configuration file is printed below. Thanks!

Code:
<?xml version="1.0" encoding="UTF-8"?>

<openbox_menu xmlns="http://openbox.org/3.4/menu">

<menu id="apps-editors-menu" label="editors">
  <item label="vim">
    <action name="Execute">
      <command>urxvt -e vim</command>
    </action>
  </item>
  <item label="nano">
    <action name="Execute">
      <command>urxvt -e nano</command>
    </action>
  </item>
</menu>

<menu id="apps-term-menu" label="terminals">
  <item label="rxvt unicode">
    <action name="Execute">
      <command>urxvt</command>
    </action>
  </item>
  <item label="xterm">
    <action name="Execute">
      <command>xterm</command>
    </action>
  </item>
</menu>

<menu id="apps-net-menu" label="web browser">
  <item label="gnu-icecat">
    <action name="Execute">
      <command>icecat</command>
    </action>
  </item>
</menu>

<menu id="apps-office-menu" label="mail client">
  <item label="mutt"
    <action name="Execute">
      <command>urxvt -e mutt</command>
    </action>
  </item>
</menu>

<menu id="apps-multimedia-menu" label="multimedia">
  <item label="mocp">
    <action name="Execute">
      <command>urxvt -e mocp</command>
    </action>
  </item>
  <item label="mplayer">
    <action name="Execute">
      <command>smplayer</command>
    </action>
  </item>
</menu>

<menu id="apps-graphics-menu" label="graphics">
 <item label="gimp">
    <action name="Execute">
      <command>gimp</command>
    </action>
  </item>
  <item label="zathura">
    <action name="Execute">
      <command>zathura</command>
    </action>
  </item>
</menu>

<menu id="root-menu" label="Openbox 3">
  <separator label="applications" />
  <menu id="apps-editors-menu"/>
  <menu id="apps-term-menu"/>
  <menu id="apps-net-menu"/>
  <menu id="apps-office-menu"/>
  <menu id="apps-multimedia-menu"/>
  <menu id="apps-graphics-menu"/>
  <separator />
  <item label="log out">
    <action name="Exit">
      <prompt>yes</prompt>
    </action>
  </item>
</menu>

</openbox_menu>
 
Old 06-04-2011, 12:56 AM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Code:
<item label="mutt"
The error is on line 40

It should be:
Code:
<item label="mutt">
 
1 members found this post helpful.
Old 06-04-2011, 01:00 AM   #3
quexxon-12
LQ Newbie
 
Registered: Jun 2011
Location: US
Distribution: Arch
Posts: 3

Original Poster
Rep: Reputation: Disabled
Wow... that was dumb. Thanks a lot! I overlooked that every time.
 
Old 06-04-2011, 01:03 AM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Glad to be of help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot cp menu.xml, rc.xml, and autostart.sh (Openbox) oalicein Linux - Newbie 2 02-10-2011 05:52 PM
openbox syntax error lin_uxsprout Linux - Desktop 3 06-07-2009 05:15 PM
Can't create custom menu.xml for openbox LogicNZ Linux - Newbie 6 07-19-2008 10:37 AM
Xml Parsing Eror:syntax error Black.UCoD Linux - Newbie 6 08-30-2005 04:23 PM
OpenBox menu.xml error Cmdr_K00n Linux - Newbie 1 06-22-2004 06:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration