Re: [xml] Two semantically identical files are being treated differently
- From: Jason Viers <lists beanalby net>
- To: xml gnome org
- Subject: Re: [xml] Two semantically identical files are being treated differently
- Date: Wed, 21 Feb 2007 17:03:04 -0500
David Grohmann wrote:
the call I'm using is this
xmlReadFile( document_filename, NULL, XML_PARSE_PEDANTIC )
are you saying that if i change XML_PARSE_PEDANTIC to
XML_PARSE_NOBLANKS it will parse them exactly the same?
They SHOULD be parsing the same anyway, don't know why they're not. But
it sounds like you want to ignore the blank text node in between the
elements, so adding that should make them both ignore it.
You don't have to get rid of PEDANTIC if you want, you can OR them
together for multiple options.
xmlReadFile( document_filename, NULL, XML_PARSE_PEDANTIC |
XML_PARSE_NOBLANKS)
Jason
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]