From: Bill Kendrick (William.Kendrick@wcom.com)
Date: Tue Oct 10 2000 - 18:31:44 EDT
On Mon, 09 Oct 2000 16:47:09 Bill Kendrick wrote:
>
> In other words, the difference between:
>
> <tag1>foo</tag1>
> <tag2>bar</tag2>
>
> and:
>
> <tag1>foo</tag1><tag2>bar</tag2>
BTW, this is also valid:
<tag1>foo</tag1><!--Comment--><tag2>bar</tag2>
I'm still really unfamiliar with the internals of libxml,
but perhaps this is where the whitespace test might be
handy?
valid.c (libxml2-2.2.4), around line 3460:
switch (cont->ocur) {
case XML_ELEMENT_CONTENT_ONCE:
if (ret == 1) {
/* skip ignorable elems */
while ((*child != NULL) &&
(((*child)->type == XML_PI_NODE) ||
((*child)->type == XML_COMMENT_NODE))) {
while ((*child)->next == NULL) {
if (((*child)->parent != NULL) &&
((*child)->parent->type == XML_ENTITY_REF_NODE)) {
*child = (*child)->parent;
} else
break;
}
*child = (*child)->next;
}
return(1);
}
*child = cur;
return(0);
-bill!
William.Kendrick@wcom.com
ext 6218
---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Tue Oct 10 2000 - 18:43:16 EDT