Skip to content Skip to sidebar Skip to footer

Xml Illegal Attribute Value

I am using the SAX parser in java to read some XML. The XML I am giving it has problems and is causing the parse to fail. Here is the error message: 11-18 10:25:37.290: W/System.e

Solution 1:

You need to escape the < inside the text attribute value. Since XML uses < and > to denote tags, it's illegal in content unless escaped or enclosed in a CDATA tag (which isn't an option for an attribute value).

Solution 2:

The error message is correct. A < must be the start of a tag, and cannot appear inside a string. It must be &lt; instead. I don't believe the quotes is a problem.

Post a Comment for "Xml Illegal Attribute Value"