Re: [xml] libxml2: Get the wrong number of occurrence of elements from DTD
- From: Daniel Veillard <veillard redhat com>
- To: David Franklyn <purine88 hotmail com>
- Cc: xml gnome org
- Subject: Re: [xml] libxml2: Get the wrong number of occurrence of elements from DTD
- Date: Fri, 12 Mar 2004 19:08:05 -0500
On Fri, Mar 12, 2004 at 03:43:39PM -0500, David Franklyn wrote:
Hi,
I am using DTDReader by Ashley Cambrell to parse a DTD file with some
modifications.
<?xml version='1.0' encoding='UTF-8'?>
<!ELEMENT foo (bar?, goo+)>
[...]
return elementFromDtd->content->ocur;
}
In both situations, the return value is one, that is,
XML_ELEMENT_CONTENT_ONCE.
Normal, it's (bar?, goo+) once. You would get something
different for (bar?, goo+)+ or (bar?, goo+)? or (bar?, goo+)*
content pointer is a tree, you must walk the tree to understand it.
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]