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
Highlighted
Contributor
Posts: 21
Registered: ‎09-09-2011
My Device: developer
My Carrier: developer
Accepted Solution

Webworks for OS 7 - Parsing config.xml error - Bad XML structure

[ Edited ]

I'm getting this error while compiling with WebWorks SDK 2.3.1.5

 

[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

 

 

This is my config.xml

 

<?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"
        xmlns:rim="http://www.blackberry.com/ns/widgets"
        version="2.0"
        rim:header="RIM-Widget: rim/widget">
 
  <author href="http://www.myweb.com/myplaybookapp/theapp.html
          rim:copyright="Copyright 2012-2013 mycomp.com">my comp</author>
 
  <rim:navigation mode="focus" />

  <name>My App</name>
 
  <description>
    My app description
  </description>

  <rimSmiley Surprisedrientation mode="portrait"/>
 
 <rim:loadingScreen
     backgroundColor="#A4C1D8"
    foregroundImage="img/allcategories.png"
    onLocalPageLoad="true">
   <rim:transitionEffect type="zoomIn" />
  </rim:loadingScreen>

  <icon src="logo/my10.png"/>

  <rim:cache maxCacheSizeTotal="2048" maxCacheSizeItem ="256" />

 
  <content src="main.html" rim:allowInvokeParams="true"/>
 
  <feature id="blackberry.ui.dialog"/>

  <feature id="blackberry.app">
    <param name="backgroundColor" value="0xFFFFFFFF" />
  </feature>  

  <feature id="blackberry.ui.dialog"/>
  <feature id="blackberry.pim.calendar" />

  <access uri="http://www.mycomp.com" subdomains="true"></access>
  <access uri="http://adn.ebay.com" subdomains="true"></access>

  <license>
    Copyright (c) 2013 Itassets.
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
    OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
    HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
    WHETHER IN AN ACTION OF CONTRACT, INSULT OR OTHERWISE, ARISING
    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
    OTHER DEALINGS IN THE SOFTWARE.  
  </license>
 
</widget>

Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Webworks for OS 7 - Parsing config.xml error - Bad XML structure

Hi there,

Your <author> href is missing a closing " symbol.

For reference, this site provides a decent XML validator:
http://www.w3schools.com/xml/xml_validator.asp

Saved my hide a few times :-)

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.