XML parser questions

From: Date: Fri, 15 Mar 2002 16:20:47 +0000
Subject: XML parser questions
Groups: php.general 
Request: Send a blank email to php-general+get-88668@lists.php.net to get a copy of this message
OK, I'm getting a bit confused about the well-formedness checking of expat. Doesn't expat do basic well-formedness checking? If I set empty start/endElement and charData handlers, and I parse: <elem1> <elem2>text </elem1> </elem2> I get an error as expected about mismatched tags. But if I give: <elem>text Or: <elem/>text It doesn't give an error. Why is that? TIA, thalis

« previous php.general (#88668) next »