I have an XML defined something like this.
<object text="this is a <a>some text</a>" />
My SAXParser is unable to parse this XML as it contains <> tag in its attribute. Anyway to solves this?
I tried an online syntax checker and it failed. So does it mean that you cannot define <> tag in an XML attribute?
Absolutely this is not valid XML. You will need to ensure you escape these characters as discussed in the W3C document http://www.w3.org/TR/xml/#dt-escape
For the sake of completeness here is your example and what it will look like if you escape it
or;