[xml] Query about xmlNewReference



Hi,

In the function xmlNewReference for the following bit of code

if (ent != NULL) {

       cur->content = ent->content;

       /*

        * The parent pointer in entity is a DTD pointer and thus is NOT

        * updated.  Not sure if this is 100% correct.

        *  -George

        */

       cur->children = (xmlNodePtr) ent;------Is this correct?(Line No 2563)

       cur->last = (xmlNodePtr) ent;

    }

Or should the the line be

cur->children = ent->children?

 

Thanks

Regards

Ashwin

 

 

 

 



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