Re: [xml] validate by schema works but only after reparsing ?

On Mon, Jul 07, 2003 at 05:21:51PM +0200, Peter Sobisch wrote:
I found out, that the content pointer of xmlNode will not be updated in
xmlNewChild and xmlNodeSetContent, but the XML-Schema validation seems to use it.

  I do not understand. The value of the content field of an xmlNode
depends closely on the type of node.

Parsing the data the pointer will be set properly, therefore I had have 
to save first and than reparse the data.

Is it an intentional behaviour not updating the content pointer ?

  on what kind of node ? On an element, yes ! An element content is stored
in the children list, not on content !


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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