[xml] xmlParseMemory returns 0
- From: "Martin Glass" <martinglass attbi com>
- To: <xml gnome org>
- Subject: [xml] xmlParseMemory returns 0
- Date: Tue, 3 Sep 2002 22:07:15 -0600
Hi all,
I have compiled libxml2 (2.4.24) under Windows, and am successfully
parsing all my stuff, with one exception -- xmlParseMemory always returns
null when the content of a tag ends in "??". I checked it with xmllint, and
it didn't complain...
Is there something I've forgotten to do? This just seems a little strange
to me.
Thanks,
Martin
The following code sums it up:
const char * input = \
"<?xml version=\"1.0\"?>
<BADTAG>Is this considered invalid XML ??</BADTAG>";
void main ()
{
xmlDocPtr doc;
int size = strlen(input);
printf("size: %d\n", size);
doc = xmlParseMemory(input, size);
printf("doc: %p\n", doc);
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]