{ "id": "77918", "key": "TIMOB-4709", "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": [ { "id": "11362", "description": "Mobile 1.8.0 M09", "name": "Sprint 2011-30", "archived": true, "released": true, "releaseDate": "2011-08-01" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-07-27T15:25:36.000+0000", "created": "2011-07-18T13:22:09.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [ { "id": "11787", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "id": "78278", "key": "TIMOB-4803", "fields": { "summary": "Android: validate xml.js drillbit test and remove unnecessary bug-related comments after all pending bug pull requests have been merged.", "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": "Medium", "id": "3" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "11689", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "77390", "key": "TIMOB-4570", "fields": { "summary": "Write unit tests for Titanium.XML.Document", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-08-26T15:08:53.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": "Sample XML, put this in a test app's Resources folder:\r\n\r\n{code:title=with_ns.xml}\r\n\r\n\r\n 123\r\n 456\r\n yummy\r\n very yummy\r\n also yummy\r\n\r\n{code}\r\n\r\nUse this app.js\r\n\r\n{code:title=app.js}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Test',\r\n backgroundColor:'#000',\r\n\texitOnClose: true\r\n});\r\nvar xml = Ti.Filesystem.getFile(\"with_ns.xml\").read().text;\r\nTi.API.info(\"xml: \" + xml);\r\nvar doc = Ti.XML.parseString(xml);\r\nvar elems = doc.getElementsByTagNameNS(\"http://example.com\", \"cake\");\r\nTi.API.info(\"Matching elements: \" + elems.length);\r\nwin.open();\r\n{code}\r\n\r\nThe log message will say \"Matching elements: 0.0\". It should be 2.0.", "attachment": [], "flagged": false, "summary": "Android: XML document.getElementsByTagNameNS seems not to work", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "160807", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Review and test.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-27T15:25:36.000+0000", "updated": "2011-07-27T15:25:36.000+0000" }, { "id": "164200", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested XML Drillbit (test case above covered in Elements section) with:\nversion=1.8.0\ntimestamp=08/26/11 14:21\ngithash=0e2031e\nAndroid Emulator 2.1 and 3.2", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-26T15:08:53.000+0000", "updated": "2011-08-26T15:08:53.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }