{ "id": "62463", "key": "TIMOB-1831", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:18.000+0000", "created": "2011-04-15T03:03:25.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "parse", "xml" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:57:18.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}

When an XML file (or HTTP xml response message) contains some\nnumeric entities for special characters (e.g. ë), these are\ncorrectly handled only when they are found in an attribute, but not\nwhen they are present inside the inner text of an element, as\nstated in Q&A (http://developer.appcelerator.com/question/56091/xml-parser-unable-....
\nFor example, given the following xml text:

\n
\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<root>\n    <element1 attribute1=\"i grave is &#236;\">\n    e grave is &#232;\n    </element1>\n</root>\n
\n

The value of attribute1 is correctly parsed as \"i grave is\nì\", while element1 inner text is parsed as \"e grave is\".
\nIn attachment you find this xml file and an app.js for the test\ncase.

{html}", "attachment": [ { "id": "18066", "filename": "app.js", "author": { "name": "oliviermorandi", "key": "oliviermorandi", "displayName": "Olivier Morandi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:03:26.000+0000", "size": 1100, "mimeType": "application/x-javascript" }, { "id": "18067", "filename": "test.xml", "author": { "name": "oliviermorandi", "key": "oliviermorandi", "displayName": "Olivier Morandi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:03:26.000+0000", "size": 137, "mimeType": "text/xml" } ], "flagged": false, "summary": "XML parser unable to correctly handle numeric entities", "creator": { "name": "oliviermorandi", "key": "oliviermorandi", "displayName": "Olivier Morandi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "oliviermorandi", "key": "oliviermorandi", "displayName": "Olivier Morandi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126779", "author": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Runs fine with current master build; this is already fixed by\nthe fix for \nhttps://appcelerator.lighthouseapp.com/projects/32238/tickets/862-o...

{html}", "updateAuthor": { "name": "brionvibber", "key": "brionvibber", "displayName": "Brion Vibber", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:03:27.000+0000", "updated": "2011-04-15T03:03:27.000+0000" }, { "id": "126780", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

moving to fixed-in-qa for Thomas to verify. Thank Brion.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:03:27.000+0000", "updated": "2011-04-15T03:03:27.000+0000" }, { "id": "126781", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

created #1901 for 1.6 behavior, closing this as fixed.\n1.4.2dc7b90

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:03:27.000+0000", "updated": "2011-04-15T03:03:27.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }