Trouble Installing - XML Parse Error?

Tim Christopher <[email protected]>
Newsgroups gmane.comp.java.struts-menu.user
Message-ID <[email protected]>
Hi,

I've noticed a few people have had this error in the past, but I
cannot find a solution for it anywhere :o(

My menu-config.xml file looks like this:

<?xml version="1.0" encoding="UTF-8" ?>
<MenuConfig>
 <Displayers>
   <Displayer name="CoolMenu"
type="net.sf.navigator.displayer.CoolMenuDisplayer"/>
 </Displayers>
 <Menus>
   <Menu name="MenuFile" title="Contact">
     <Item name="phone" title="Phone" location="?Phone"/>
   </Menu>
 </Menus>
</MenuConfig>

>>>>

If I remove the Item tag then a menu bar appears with one heading,
which is "???en_GB.Contact???"; this heading does nothing when you
click on it.

If I leave the menu-config.xml file as shown above the page does not
load at all; instead it produces the following error message:

HTTP Status 500 - 
Exception: 
javax.servlet.ServletException: Exception forwarding for name about:
javax.servlet.ServletException: Failure initializing struts-menu:
Error parsing resource file:
/WEB-INF/resources/xml/config/menu-config.xml nested exception is: The
processing instruction target matching "[xX][mM][lL]" is not allowed.
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
    <snip />

Root Cause:
javax.servlet.jsp.JspException: Exception forwarding for name about:
javax.servlet.ServletException: Failure initializing struts-menu:
Error parsing resource file:
/WEB-INF/resources/xml/config/menu-config.xml nested exception is: The
processing instruction target matching "[xX][mM][lL]" is not allowed.
org.apache.struts.taglib.logic.ForwardTag.doForward(ForwardTag.java:127)
   <snip />

As far as I can tell there is nothing wrong with the format of my xml
file (though I cannot find a dtd for it).

If anyone recognises this error and can help point me in the right
direction then it would be much appreciated.

Tim Christopher


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.