Re: [xml] xmlCopyDtd() does not copy the children of the DTD node...



The patch for this is just about complete and tested - however, I've
noticed a small problem: According to the documentation, xmlEntity nodes do
not have children, but they actually do, eg:

$ ./xmllint --debug test/xml1 
DOCUMENT
version=1.0
URL=test/xml1
standalone=true
  DTD(test)
    ENTITYDECL(example), internal
     content=<p>An ampersand (&#38;) may be escaped  ...
      ELEMENT p
        TEXT
          content=An ampersand (&) may be escaped  numeric...
  ELEMENT test
    ENTITY_REF(example)
      INTERNAL_GENERAL_ENTITY example
      content=<p>An ampersand (&#38;) may be escaped  ...


Presumably it is the documentation that is incorrect, and xmlCopyEntity
should really copy the node's children as well?

Anthony



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