[libxml++] RE: [xml] DOM Parser + entities



> From: Daniel Veillard [mailto:veillard redhat com]  
> On Wed, Oct 15, 2003 at 07:23:43PM +0200, 
> Murray Cumming Comneon com wrote:
> > Thanks. So, Node::children points to the entity declaration 
> > (xmlEntityPtr). Is it possible/meaningful for there to be more than 
> > one child? As I understand it, an entity reference can only 
> refer to 
> > one entity declaration. I ask because I think I've seen an 
> > XML_ENTITY_REF_NODE xmlNode with 2 XML_ENTITY_DECL children.
> 
>   that would obviously be a bug, and I would need a 
> reproductible case to chase it, as usual. How could &foo; 
> lead to reference to 2 entities, no that doesn't make sense to me.

Don't worry about it then. My current libxml++ code is getting the first
child and not even looking for a 2nd one, and it seems to work fine. I just
found it strange that the children struct field was used for this purpose.
But apparently it's also done that way in the W3C DOM API spec thingy. I
think I'll try to make it more obvious in libxml++.

Thanks for all the help. Expect similar annoying questions about the SAX
parser + entities soon.

Murray Cumming
www.murrayc.com
murrayc usa net




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]