Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
Posts: 2
Registered: ‎05-17-2011
My Device: Blackberry Storm 2 9550
My Carrier: Verizon
Accepted Solution

Failed to parse config.xml - bad xml structure

I am trying to make a simple app for blackberry phones.  I used the code from the dev website on creating your first app. 

 

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"  
        xmlns:rim="http://www.blackberry.com/ns/widgets"
  version="1.0.0.0">
  <name>DevBlog</name>
  <description>The BlackBerry Developers Blog</description>
  <author rim:copyright="2011"
          email="john@doe.com">John Doe</author>
  <icon src="icon.png"/>
  <content src="http://devblog.blackberry.com"/>
  <access subdomains="true" uri="*"/>
</widget>

I have edited it for the site we want and other details as follows:

 

<?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"
  xmlns:rim="http://www.blackberry.com/ns/widgets"
   version="1.0.0.0"> 
 <rim:loadingScreen backgroundColor="#000000" />
 <name>DeVryUniversity</name> 
 <description>DeVry University Library</description> 
 <author rim:copyright="2011"
   email="danny_coats@att.net">Danny Coats</author> 
 <icon src="DeVryLibrary.png"/> 
 <content src="http://library.devry.edu/cgi-bin/Pwebrecon.cgi?DB=local&PAGE=First"/
 <access subdomains="true" uri="*"/>
</widget>

 

It gives me the following errors when I compile it:

 

C:\Program Files\Research In Motion\BlackBerry WebWorks Packager>bbwp "C:\Users\
Danny Coats\workspace\applications\DeVryLibrary\DeVryLibrary.zip"
[INFO]                  Parsing command line options
[INFO]                  Parsing bbwp.properties
[INFO]                  Validating application archive
[INFO]                  Parsing config.xml
[ERROR]                 Failed to parse config.xml - bad XML structure

 

I am using Windows 7 Professional and the latest Blackberry WebWorks SDK.  I cannot find anything in the community for this to resolve.

 

Any suggestions will be greatly appreciated.

Developer
Posts: 164
Registered: ‎08-26-2010
My Device: Not Specified

Re: Failed to parse config.xml - bad xml structure

[ Edited ]

I'd got the same error when try your config.
So i try to analyze it.
I found the mistake is in the content element value, you have:

http://library.devry.edu/cgi-bin/Pwebrecon.cgi?DB=local&PAGE=First

and should be:

http://library.devry.edu/cgi-bin/Pwebrecon.cgi?DB=local&amp;PAGE=First

So the special characters of the URL should be converted to its html entities.

New Contributor
Posts: 2
Registered: ‎05-17-2011
My Device: Blackberry Storm 2 9550
My Carrier: Verizon

Re: Failed to parse config.xml - bad xml structure

Thanks a bunch. Solution worked.  Much appreciated.