You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "João Luís (JIRA)" <ji...@apache.org> on 2015/05/04 20:00:09 UTC
[jira] [Commented] (CB-8250) special characters in config.xml
[ https://issues.apache.org/jira/browse/CB-8250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14526948#comment-14526948 ]
João Luís commented on CB-8250:
-------------------------------
Similar problem here.
When trying to add the android@3.7.2 platform to a project with amp (i.g. "My & App") in the name it give the following error:
{code}
Creating android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: com.easyeasyapps.framework.a29.icontest
Name: My&App
Android target: android-21
Copying template files...
Project successfully created.
Error: Unexpected close tag
Line: 8
Column: 12
Char: >
at error (/Users/jrluis/.nvm/v0.10.26/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/node_modules/elementtree/node_modules/sax/lib/sax.js:347:8)
at strictFail (/Users/jrluis/.nvm/v0.10.26/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/node_modules/elementtree/node_modules/sax/lib/sax.js:364:22)
at closeTag (/Users/jrluis/.nvm/v0.10.26/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/node_modules/elementtree/node_modules/sax/lib/sax.js:523:7)
at Object.write (/Users/jrluis/.nvm/v0.10.26/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/node_modules/elementtree/node_modules/sax/lib/sax.js:948:29)
at XMLParser.feed (/Users/jrluis/.nvm/v0.10.26/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/node_modules/elementtree/lib/parsers/sax.js:48:15)
at ElementTree.parse (/Users/jrluis/.nvm/v0.10.26/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/node_modules/elementtree/lib/elementtree.js:263:10)
at Object.exports.XML (/Users/jrluis/.nvm/v0.10.26/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/node_modules/elementtree/lib/elementtree.js:593:13)
at Object.module.exports.parseElementtreeSync (/Users/jrluis/.nvm/v0.10.26/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/util/xml-helpers.js:126:38)
at android_parser.update_from_config (/Users/jrluis/.nvm/v0.10.26/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/metadata/android_parser.js:221:23)
at android_parser.update_project (/Users/jrluis/.nvm/v0.10.26/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/metadata/android_parser.js:349:14)
{code}
> special characters in config.xml
> --------------------------------
>
> Key: CB-8250
> URL: https://issues.apache.org/jira/browse/CB-8250
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.5.0, 4.1.3
> Environment: Mac OSX Android iOS
> Reporter: Julien Durens
>
> In the config.xml, when you have an app name containing a special character (in my case a single quote, or an apostropher) it has to be escaped to work on android, but it shouldn't on iOS. So I had to change the name of the app according to the platform I was trying to build:
> <name>My app isn\'t that bad</name> on android
> and
> <name>My app isn't that bad</name> on ios
> this kind of job shoud be done by the cordova platform add command
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org