ReferenceError: Error #1065 re: E4X XML search
October 28th, 2009I was trying to do a simple E4X search of my XML for an attribute named “type” and I came across this error.
ReferenceError: Error #1065: Variable @type is not defined.
After ramming my head against a wall for around 30 minutes I asked Duncan if he ever saw such a thing. After all, other searches on the same XML were working perfectly. After some thought he remembered having a similar issue. Turns out that every node you are searching needs to have that attribute, in my case every node needed the “type” attribute.
Comments (7)



