12-17-2012 05:51 AM
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
12-17-2012 10:42 AM
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/documentati
12-17-2012 10:47 AM
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.
12-18-2012 01:37 AM
Hi chadtrio
I have copied the given config.xml
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 ?
12-18-2012 01:42 AM
Hi cdelcol
If you want mor detail to help me .Pease see my other post related to the same query
I have given my complete code there
12-18-2012 11:22 AM
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"?><widget xmlns="http://www.w3.org/ns/widgets" version="2.0.0.0" id="sampleapp"> rim:copyright="Copyright 1998-2012 My Corp">My Corp</author> <name>Sample application</name> <description> A sample application to demonstrate some features. </description> <rim
ermissions> <rim
ermit>access_shared</rim
ermit> <rim
ermit>access_location_services</rim
ermit> <rim
ermit>use_camera</rim
ermit> </rim
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> <feature id="blackberry.app" required="true" version="1.0.0"/> <feature id="blackberry.invoke" required="true" version="1.0.0"/> </access></widget>12-19-2012 05:44 AM - edited 12-19-2012 05:57 AM
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.
<rim:navigation mode="focus"/>
</widget>