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
Developer
srk2012
Posts: 669
Registered: ‎12-04-2012
My Carrier: Airtel

what is the mistake in my config.xml as it saying"Your config.xml is not valid or it is Malformed xml

what is the  mistake in my  config.xml as it saying"Your config.xml is not valid or it is Malformed xml

 

 

 

 

My config.xml is

 

 

 

<?xml version="1.0" encoding="UTF-8"?>
 <widget xmlns="http://www.w3.org/ns/widgets" height="320" id="http://XMLDataSource" version="1.0.0" viewmodes="windowed fullscreen" width="240">
    
    <name short="XMLDataSource">XMLDataSource</name>    

    <description>
        Web App demonstrating how XML formatted resouce can be retrieved by using XMLHttpRequest.
    </description>
    
       <author email="webapps@nokia.com" href="http://www.nokia.com/">
        Nokia Corporation
    </author>
    
    <icon src="icon.png"/>

    <content src="index.html"/>
    
     <license>
        Copyright © 2012 Nokia Corporation. All rights reserved.
    Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other product and company names mentioned herein may be
    trademarks or trade names of their respective owners.
        
    Subject to the conditions below, you may, without charge:
    
    -  Use, copy, modify and/or merge copies of this software and
       associated documentation files (the “Software”)
    
    -  Publish, distribute, sub-licence and/or sell new software
       derived from or incorporating the Software.
        
    This licence text, unmodified, shall be included with all copies or substantial portions
    of the Software that are distributed in source code form.
    
    The Software cannot constitute the primary value of any new software derived
    from or incorporating the Software.
    
    Any person dealing with the Software shall not misrepresent the source of the Software.
    
    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, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    </license>
    
    
    <feature name="nokia://s40.nokia.com/SAWRT/2.0" required="true" />
</widget>

 

 

 

where as the  config.xml for the sample HelloWorld application  is valid which is  

 

<?xml version="1.0" encoding="UTF-8"?>
   version="1.0" rim:header="WebWorks Sample">
 
   <name>Hello World</name>
   <description>This is HelloWorld.</description>
   <content src="index.html"/>
 
</widget>
 
 
The Helloworls application is runing very fine on BlackBerry Simulator and the device too.
 
 
 
Please  correct my config.xml which was said as "Malformed xml"

 

 

 

Please use plain text.
BlackBerry Development Advisor
chadtatro
Posts: 602
Registered: ‎10-01-2009
My Carrier: Bell

Re: what is the mistake in my config.xml as it saying"Your config.xml is not valid or it is Malformed xml

Hello,

 

The only thing that really stands out to me is:      <feature name="nokia://s40.nokia.com/SAWRT/2.0" required="true" />

 

I ran your config through an xml validator and it came back as valid though.

 

Could you try using the sample config, and rebuilding, from here?  https://developer.blackberry.com/html5/documentation/code_sample_creating_a_bb_widget_config_documen...

Chad Tetreault | App Development Consultant | BlackBerry Developer Relations | developer.blackberry.com | @chadtatro
Please use plain text.
BlackBerry Development Advisor
cdelcol
Posts: 37
Registered: ‎01-08-2010
My Carrier: Rogers

Re: what is the mistake in my config.xml as it saying"Your config.xml is not valid or it is Malformed xml

Chad, i thought the same thing. That valid "feature" element with invalid data inside it may be throwing an error that wasn't expected at packaging. If it is, it should be a pretty simple check to add and report something more appropriate.

Please use plain text.
Developer
srk2012
Posts: 669
Registered: ‎12-04-2012
My Carrier: Airtel

Re: what is the mistake in my config.xml as it saying"Your config.xml is not valid or it is Malformed xml

Hi chadtrio

 

 

I have copied the given config.xml

 

from  https://developer.blackberry.com/html5/documentation/code_sample_creating_a_bb_widget_config_documen...

 

 

 

and executed the Buld Package.     It says and throws an error again

 

 


Oh Snap! Build request failed with message: [ERROR] Failed to parse config.xml - bad XML structure

 

 

 

Please guide me what to do now ?

Please use plain text.
Developer
srk2012
Posts: 669
Registered: ‎12-04-2012
My Carrier: Airtel

Re: what is the mistake in my config.xml as it saying"Your config.xml is not valid or it is Malformed xml

Hi  cdelcol

 

 

If you want mor detail to help me .Pease see my other post related to the same query

 

 

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Anyone-please-help-me-on-pOrting...

 

 

 

I have given my complete code there 

Please use plain text.
Developer
madmaskd
Posts: 136
Registered: ‎07-24-2012
My Carrier: Vodafone

Re: what is the mistake in my config.xml as it saying"Your config.xml is not valid or it is Malformed xml

1.Dude Scrap your Config  Xml File

2. Get the Copy of the XML format whcih Blackberry Accepts as i have Mentioned Below

 

<?xml version="1.0" encoding="utf-8"?>
        xmlns:rim="http://www.blackberry.com/ns/widgets"
        version="2.0.0.0" id="sampleapp">
 
  <author href="http://www.example.com/"
          rim:copyright="Copyright 1998-2012 My Corp">My Corp</author>
 
  <name>Sample application</name>
 
  <description>
    A sample application to demonstrate some features.
  </description>
 
  <rim:smileytongue:ermissions>
    <rim:smileytongue:ermit>access_shared</rim:smileytongue:ermit>
    <rim:smileytongue:ermit>access_location_services</rim:smileytongue:ermit>
    <rim:smileytongue:ermit>use_camera</rim:smileytongue:ermit> 
  </rim:smileytongue:ermissions>
 
  <icon src="icons/icon-150.png"/>
 
  <rim:splash src="splash-1280x768.png"/>
  <rim:splash src="splash-768x1280.png"/>
 
  <content src="index.html" rim:allowInvokeParams="true"/>
 
  <feature id="blackberry.ui.dialog"/>
   
  <feature id="blackberry.app.orientation">
    <param name="mode" value="portrait" />
  </feature>
 
  <feature id="blackberry.app">
    <param name="backgroundColor" value="0xFFFF0000" />
  </feature>
 
  <access uri="http://www.somedomain.com" subdomains="true">
    <feature id="blackberry.app" required="true" version="1.0.0"/>
    <feature id="blackberry.invoke" required="true" version="1.0.0"/>
  </access>
 
  <license href="http://www.example.com/"/>
 
</widget>
 
3. Make Modification About the Model and the version Name and your Domian and company
4. Name this File as Config.xml in the MainProject Folder
5. It will Runn
if u make Other Setting Correct with Immulator and signing Keys ETc
 
6 mOST IMPORTANT LIKE THIS mY POST
Hit Like if you find my post Use Full Thank You...
Please use plain text.
Developer
srk2012
Posts: 669
Registered: ‎12-04-2012
My Carrier: Airtel

Re: what is the mistake in my config.xml as it saying"Your config.xml is not valid or it is Malformed xml

[ Edited ]

Yes I have used ur config.xml but still saying "Feature not suported" and reflecting error during Building package

 

 

process

 

 

 

what should be the index.html then. I used the below config.xml and tried to build package

 

 

 

<?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.2">
<name>Weather</name>
<description>Weather Widget</description>
<author rim:copyright="Research In Motion">Research In Motion</author>
<feature id="blackberry.io.file" required="true" version="1.0.0.0"/>
<feature id="blackberry.io.dir" required="true" version="1.0.0.0"/>
<feature id="blackberry.ui.menu" required="true" version="1.0.0.0"/>
<feature id="blackberry.system" required="true" version="1.0.0.0"/>
<feature id="blackberry.utils" required="true" version="1.0.0.0"/>
<feature id="blackberry.ui.dialog" required="true" version="1.0.0.0"/>
<feature id="blackberry.ui.menu" required="true" version="1.0.0.0"/>
<feature id="blackberry.app" required="true" version="1.0.0.0"/>
<feature id="blackberry.app.event" required="true" version="1.0.0.0"/>
<feature id="blackberry.invoke.MessageArguments" required="true" version="1.0.0.0"/>
<feature id="blackberry.invoke" required="true" version="1.0.0.0"/>
<feature id="blackberry.message" required="true" version="1.0.0.0"/>
<feature id="blackberry.invoke.BrowserArguments" required="true" version="1.0.0.0"/>
<feature id="blackberry.ui.Spinner" required="false" version="1.0.0"/>
<access subdomains="true" uri="*"/>
<access subdomains="true" uri="http://code.google.com"/>
<icon rim:hover="false" src="images/LBAI53_Sunny.png"/>
<content src="index.html"/>
<rim:loadingScreen backgroundColor="#808080" backgroundImage="images/WW_Interface_DarkGradient.png" foregroundImage="images/Loading.gif" onFirstLaunch="true"/>
<rim:navigation mode="focus"/>
</widget>

 

 

 

Please use plain text.