[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Why is < illegal in an attribute value but theequivalent h
In response to my question: 1. Why is it that < is illegal but the equivalent hex and decimal character entities are legal? Liam Quin answered: Because numeric character references are always treated as data when they are read, not markup. Ah!!!!!!!!!! So this is perfectly well-formed XML: <Test foo="<x>blah</x>"/> And the numeric character references will be replaced during the parsing process to yield this: <Test foo="<x>blah</x>"/> Correct? /Roger
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|