You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "wei jiang (JIRA)" <ji...@apache.org> on 2014/04/07 18:00:16 UTC

[jira] [Commented] (CB-6301) Create Cordova platform wp8 or windows8 got error "Non-whitespace before first tag"

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

wei jiang commented on CB-6301:
-------------------------------

I have exactly the same issue, my os is 
Windows 8.1 Pro(Chinese-Simplified) with Update 1
Visual Studio 2012 Ultimate with Update 4(Chinese-Simplified)

> Create Cordova platform wp8 or windows8 got error "Non-whitespace before first tag"
> -----------------------------------------------------------------------------------
>
>                 Key: CB-6301
>                 URL: https://issues.apache.org/jira/browse/CB-6301
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 3.4.0
>         Environment: Windows 8.1 Pro(Chinese-Simplified)
> Visual Studio 2013 Ultimate with Update 1(Chinese-Simplified)
>            Reporter: steelair
>              Labels: newbie
>             Fix For: 3.4.0
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> When I use Command-Line to add platforms like this:
> cordova platform add wp8
> cordova platform add windows8
> The issue occurs like this:
> C:\testproject>cordova platform add windows8
> Checking windows8 requirements...
> Creating windows8 project...
> Creating Cordova Windows 8 Project:
>         App Name : testproject
>         Namespace : testproject
>         Path : C:\testproject\platforms\windows8
> Project created
> [Error: Non-whitespace before first tag.
> Line: 0
> Column: 1
> Char: �]
> I got the same issue when I Add plugin like this:
> cordova plugin add org.apache.cordova.device
> The issue goes to:
> C:\testproject>cordova plugin add org.apache.cordova.device
> Fetching plugin "org.apache.cordova.device" via plugin registry
> Installing org.apache.cordova.device (windows8)
> Error: Non-whitespace before first tag.
> Line: 0
> Column: 1
> Char: �
>     at error (C:\Users\steelAir\AppData\Roaming\npm\node_modules\cordova\node_mo
> dules\elementtree\node_modules\sax\lib\sax.js:347:8)
>     at strictFail (C:\Users\steelAir\AppData\Roaming\npm\node_modules\cordova\no
> de_modules\elementtree\node_modules\sax\lib\sax.js:364:22)
>     at Object.write (C:\Users\steelAir\AppData\Roaming\npm\node_modules\cordova\
> node_modules\elementtree\node_modules\sax\lib\sax.js:603:11)
>     at XMLParser.feed (C:\Users\steelAir\AppData\Roaming\npm\node_modules\cordov
> a\node_modules\elementtree\lib\parsers\sax.js:48:15)
>     at ElementTree.parse (C:\Users\steelAir\AppData\Roaming\npm\node_modules\cor
> dova\node_modules\elementtree\lib\elementtree.js:263:10)
>     at Object.exports.XML (C:\Users\steelAir\AppData\Roaming\npm\node_modules\co
> rdova\node_modules\elementtree\lib\elementtree.js:593:13)
>     at Object.module.exports.parseElementtreeSync (C:\Users\steelAir\AppData\Roa
> ming\npm\node_modules\cordova\node_modules\plugman\src\util\xml-helpers.js:120:3
> 8)
>     at Object.module.exports.package_name (C:\Users\steelAir\AppData\Roaming\npm
> \node_modules\cordova\node_modules\plugman\src\platforms\windows8.js:35:36)
>     at PlatformMunger.generate_plugin_config_munge (C:\Users\steelAir\AppData\Ro
> aming\npm\node_modules\cordova\node_modules\plugman\src\util\config-changes.js:2
> 85:54)
>     at PlatformMunger.add_plugin_changes (C:\Users\steelAir\AppData\Roaming\npm\
> node_modules\cordova\node_modules\plugman\src\util\config-changes.js:211:29)



--
This message was sent by Atlassian JIRA
(v6.2#6252)