Hello, I need to read "<" from a xml file, but I get org.xml.sax.SAXParseException:The content beginning "<" is not legal markup... Is there some kind of escape character in xml? ... <CONTENT>if(a < b) b = a; a = 0; </CONTENT> Above code snippet is what I want to read from a xml file. Thanks in advance for your help.
Special characters are handled through entities. An entity reference like < contains a name (in this case, �lt�) between the start and end delimiters. The text it refers to (< ) is substituted for the name, like a macro in a C or C++ program. The following table shows the predefined entities for special characters
Thanks guys, "& l t;" seems to be working in place of "<". [This message has been edited by Joon Park (edited August 06, 2001).] [This message has been edited by Joon Park (edited August 06, 2001).]