function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

xmlStreamReader class' sample code not working

Hello All,


I was trying to run the sample code for xmlStreamReader class from


But when i try to save a class its giving me an error 

Method does not exist or incorrect signature: [XmlStreamReader].getLocalName()


Looks like a problem with sample code of XmlStreamReader class. Does anybody faced same problem?

Or I am doing some stupid thing :smileyindifferent:

Ralph CallawayRalph Callaway

It saves for me.  How are you saving your code?  You may be using an older version of the API that didn't include XMLStreamReader as an available class.


Hi Ralph,


Thanks for your reply.


Initially i thought the same way. But I am trying to save that class using inbuilt development mode of So by default it uses API Version 21. But still I am not able to save the class.




Ralph CallawayRalph Callaway

That's pretty strange given that it's working for me.  At this point I'd recommend creating a case with salesforce support and have the login and take a look at whats going on.