You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Juha Ruotsalainen (JIRA)" <ji...@apache.org> on 2013/09/12 08:27:51 UTC

[jira] [Updated] (CB-4795) ConfigHandler.cs should use XML-document's default namespace

     [ https://issues.apache.org/jira/browse/CB-4795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juha Ruotsalainen updated CB-4795:
----------------------------------

    Description: 
Hi,

I'm porting our mobile application from Android to WP8. Our Android config.xml contains the namespace in <widget> tag:
{{<widget id="fi.fastroi.care" version="2.0.0" xmlns="http://www.w3.org/ns/widgets>}}

Current implementation of ConfigHandler does not find any descendants from the XML, since the document is searched like this: {{document.Descendants("param")}}, without the default namespace included in the XName argument to the Descendants()-function.

A workaround: remove namespace from the config.xml.

A fix would be to get widget-tag's default namespace and include that into every Descendants()-call.

  was:
Hi,

I'm porting our mobile application from Android to WP8. Our Android config.xml contains the namespace in <widget> tag:
{{<widget id="fi.fastroi.care" version="2.0.0" xmlns="http://www.w3.org/ns/widgets>}}

Current implementation of ConfigHandler does not find any descendants from the XML, since the document is searched like this: {{document.Descendants("param")}}

A workaround: remove namespace from the config.xml.

A fix would be to get widget-tag's default namespace and include that into every Descendants()-call.

    
> ConfigHandler.cs should use XML-document's default namespace
> ------------------------------------------------------------
>
>                 Key: CB-4795
>                 URL: https://issues.apache.org/jira/browse/CB-4795
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP8
>    Affects Versions: 3.0.0
>            Reporter: Juha Ruotsalainen
>            Assignee: Jesse MacFadyen
>
> Hi,
> I'm porting our mobile application from Android to WP8. Our Android config.xml contains the namespace in <widget> tag:
> {{<widget id="fi.fastroi.care" version="2.0.0" xmlns="http://www.w3.org/ns/widgets>}}
> Current implementation of ConfigHandler does not find any descendants from the XML, since the document is searched like this: {{document.Descendants("param")}}, without the default namespace included in the XName argument to the Descendants()-function.
> A workaround: remove namespace from the config.xml.
> A fix would be to get widget-tag's default namespace and include that into every Descendants()-call.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira