View Full Version : Mapping XML elements that are prefixed

31 Jan 2011, 10:55 PM

when registering a new model, how do I map fields with elements that are prefixed? I.e.

app.models.SpaceConents = Ext.regModel("app.models.SpaceConents", {
fields: [
{ name: "id", type: "string", mapping: "cmis:propertyid[displayName='Object Id'] > cmis:value" }

From the following XML:

<cmis:propertyid propertyDefinitionId="cmis:objectId" displayName="Object Id" queryName="cmis:objectId">

The colon in "cmis:" gives me the following error "an uncaught SyntaxError: Unexpected token : " at sencha-touch-debug.js:9814