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
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
SimpleNodeSearch in DOMVisitor example
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: SimpleNodeSearch in DOMVisitor example
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.
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.