{ "id": "62726", "key": "TIMOB-2094", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-08-22T12:14:57.000+0000", "created": "2011-04-15T03:10:19.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "parse", "reported-1.4.0", "xml" ], "versions": [], "issuelinks": [ { "id": "20112", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:37:25.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

Hi,

\n

I tried to parse a XML, and made a control on Node Value :

\n

\nif(objItems.list.item(c).getElementsByTagName(\"description\")){

\n
\n           desc = objItems.list.item(c).getElementsByTagName(\"description\").item(0).text;\n            Ti.API.info('DESCRIPTION :' +desc);\n
\n

}

\n

This Node don't exist in my XML document, but with this test i\ncan passthru normaly, on Iphone it's true, the test return\n\"NULL\"

\n

But On Android, the test return with Ti.API.Info(\"DESCRIPTION\n:\"+objItems.list.item(c).getElementsByTagName(\"description\"))

\n

[INFO] [15,22418] DESCRIPTION\n:ti.modules.titanium.xml.NodeListProxy@44046fb8

\n

I work on Android 2.2, and this code works on Iphone

{html}", "attachment": [], "flagged": false, "summary": "[android - XML] Bug on Parse XML and non existing Node", "creator": { "name": "viviboss", "key": "viviboss", "displayName": "viviboss", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "viviboss", "key": "viviboss", "displayName": "viviboss", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127480", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Assigning to Don for triage.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:10:19.000+0000", "updated": "2011-04-15T03:10:19.000+0000" }, { "id": "215643", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "No runnable test case provided, unable to reproduce, ticket marked as invalid.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-22T12:14:57.000+0000", "updated": "2012-08-22T12:14:57.000+0000" }, { "id": "411071", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:37:25.000+0000", "updated": "2017-03-09T23:37:25.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }