{ "id": "61165", "key": "TIMOB-533", "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": "11258", "description": "Holding Pen for Triaged Issues", "name": "Backlog", "archived": false, "released": false } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2011-04-19T11:14:30.000+0000", "created": "2011-04-15T02:31:15.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "ios", "node", "nodevalue", "spec", "text", "xml" ], "versions": [], "issuelinks": [], "assignee": { "name": "kwhinnery", "key": "kwhinnery", "displayName": "Kevin Whinnery", "active": true, "timeZone": "America/Chicago" }, "updated": "2012-01-10T15:53:20.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

XML comes in fine but the individual fields cannot be extracted\nwith the following code:

\n
\nTi.API.info(\"user node = \"+this.responseXML.documentElement.getElementsByTagName(\"screen_name\").item(0).nodeValue);\n
\n

You can see in the output below (very last line) that user node\n= null

\n
\n[INFO] twitter xml [object TiDOMDocument] text\nThu Mar 23 00:03:19 +0000 2006\n123\nfinished analyzing smam/ac success rates\nweb\nfalse\nfalse\n17\nTony Stubblebine\ntonystubblebine\nMill Valley, CA\nFounder of CrowdVine. Interested in events, smallbiz, social software.\nhttp://a1.twimg.com/profile_images/609823904/tonystubblebine3_normal.png\nhttp://www.stubbleblog.com\nfalse\n6555\n0D7CDA\n000000\n0000ff\n91FFE9\n131411\n218\nTue Mar 21 21:01:35 +0000 2006\n24\n~28800\nPacific Time (US & Canada)\nhttp://a1.twimg.com/profile_background_images/32/OTHER-Lista_1280x1024.jpg\nfalse\nfalse\nfalse\n2072\nen\nfalse\n[INFO] user node = null\n
{html}", "attachment": [], "flagged": false, "summary": "XML parsing not working (Kitchen Sink 0.9.3)", "creator": { "name": "ryang", "key": "ryang", "displayName": "Ryan G", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ryang", "key": "ryang", "displayName": "Ryan G", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "123487", "author": { "name": "tyloub", "key": "tyloub", "displayName": "Tyloub", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Seems that in the new Kitchen Sink, you need to use :\nthis.responseXML.documentElement.getElementsByTagName(\"screen_name\").item(0).text\n>> .text and not .nodeValue

{html}", "updateAuthor": { "name": "tyloub", "key": "tyloub", "displayName": "Tyloub", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:31:16.000+0000", "updated": "2011-04-15T02:31:16.000+0000" }, { "id": "123488", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Code seems to indicate that returning \"null\" for nodeValue on an\nelement is correct, but in this case, we're always grabbing the\ntext node. This is an actual bug!

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:31:16.000+0000", "updated": "2011-04-15T02:31:16.000+0000" }, { "id": "178784", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio 1.0.8.201201091758\r\nTi Mob SDK 1.8.0.1\r\n1_8_X KS \r\n\r\nThe fail case no longer occurs ", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-10T15:53:20.000+0000", "updated": "2012-01-10T15:53:20.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }