Page 1 of 1

SimpleNodeSearch in DOMVisitor example

Posted: Wed Jan 10, 2018 6:42 pm
by PioPio
Hello again,

Can the procedure SimpleNodeSearch in the in DOMVisitor example be encapsulated in a class safely or are there any restrictions?

Many thanks
Alberto

Re: SimpleNodeSearch in DOMVisitor example

Posted: Wed Jan 10, 2018 8:29 pm
by salvadordf
You shouldn't keep references to the document parameter or its nodes outside the scope of DOMVisitor_OnDocAvailable.

If you use a class to search for nodes make sure you set to NIL all the fields in that class that were used to reference the document or its nodes before DOMVisitor_OnDocAvailable has finished executing.