[ 
https://issues.apache.org/jira/browse/CB-5957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13893796#comment-13893796
 ] 

Jesse MacFadyen commented on CB-5957:
-------------------------------------

Here are 2 possible workarounds until this is addressed either by a 3.4.0 
platforms release or an update to the cordova-cli.

a) Remove/Comment out this code from src/config_parser.js ( whereever you have 
cordova-cli installed )
{code:javascript}
/*
var r = this.doc.getroot();
var xmlns ='http://www.w3.org/ns/widgets';
if((r.tag !== 'widget') || !r.attrib || (r.attrib.xmlns !== xmlns)) {
    throw new Error("This file does not seem to be a cordova config.xml file: " 
+ path);
}
*/
{code}

b) Update the config.xml in the windows phone 8 template used by the platform 
create.

Change:
<widget>
To:
<widget xmlns ='http://www.w3.org/ns/widgets'>
In your case this is the file at 
C:\Users\Martin\Downloads\a\platforms\wp8\config.xml





> Unable to add WP8 platform in cordova 3.3.1-0.3.0
> -------------------------------------------------
>
>                 Key: CB-5957
>                 URL: https://issues.apache.org/jira/browse/CB-5957
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, WP8
>    Affects Versions: 3.3.0
>            Reporter: Lee Crossley
>            Assignee: Jesse MacFadyen
>            Priority: Blocker
>
> Install cordova 3.3.1-0.3.0
> C:\>cordova create hello com.example.hello HelloWorld
> Creating a new cordova project with name "HelloWorld" and id 
> "com.example.hello"
>  at location "C:\hello"
> Downloading cordova library for www...
> Download complete
> C:\>cd hello
> C:\hello>cordova platform add wp8
> Checking wp8 requirements...
> Creating wp8 project...
> Error: This file does not seem to be a cordova config.xml file: 
> C:\hello\platfor
> ms\wp8\config.xml



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to