[libxml++] RE: [xml] DOM Parser + entities
- From: Murray Cumming Comneon com
- To: veillard redhat com
- Cc: libxmlplusplus-general lists sourceforge net
- Subject: [libxml++] RE: [xml] DOM Parser + entities
- Date: Thu, 16 Oct 2003 08:52:39 +0200
> 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]