login about faq

Did someone has experiment problems with version 9.5 by not returning nil/null when using findChild function on the ActiveX version of xml? The workaround is to use findchild2 and with the answer decide to take the pointer


asked Nov 19 '14 at 15:49

malfredo32's gravatar image


I don't see how this is possible. I reviewed the internal code, and did not find any issue. I would need to see a simple example with simple XML data such that I can reproduce the problem...


answered Nov 20 '14 at 11:34

chilkat's gravatar image

chilkat ♦♦

Bellow I am coping part of the code, basically I am checking if the xml file has a node called 'Emisor' or a node called 'cfdi:Emisor' because I have two version of the xml file. I need to get an attribute from the node and I need to point variable response to the child node where the attribute is. Right now what is happening is that the function is not returning nil and instead is returning a pointer to a chilkat object. In consequence my If no not work and only when the node 'Emisor' exist works fine, if the node name is 'cfdi:Emisor' response do not point to the child node.

(Nov 20 '14 at 18:42) malfredo32

I am using Delphi XE6 for this.

  response := xml.FindChild('Emisor');
  if (response = nil) then
    response := xml.FindChild('cfdi:Emisor');

if (response = nil) then
    Memo1.Lines.Add('Error al cargar el xml, no hay nodo emisor.  ' + chr(10) + chr(13) + chr(10));
    error := error + 'Error al cargar el xml, no hay nodo emisor  ' + chr(10) + chr(13) + chr(10);
(Nov 20 '14 at 18:43) malfredo32
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Nov 19 '14 at 15:49

Seen: 769 times

Last updated: Nov 20 '14 at 18:43

powered by OSQA