Hello people, this must simple for most. How do I handle in a simple form a TXMLData? I have access to consume a webserver, so I have a method that returns a table. I need to read data attributes but I am missing something, I've done like:

Hello people, this must simple for most. How do I handle in a simple form a TXMLData? I have access to consume a webserver, so I have a method that returns a table. I need to read data attributes but I am missing something, I've done like:

with (HTTPRIO1 as ServiceSoap) do 
begin 
    xdata := TXMLData.Create;   
    xdata := readTheTable(params); 
  .  
  . 
  . 
   xdata.Free; 
end; 
  
I can just get the xsd structure info, not the data itself.

Comments

  1. Yes, sure. On the HTTPRIO1AfterExecute that I forgot to mention, I have the code to run the list. 
    I can see the data if on the SOAPResponse, move that to the XMLDocument but I can never get any attribute. I have similar code that works fine but this case seems to be diferent for me, even its common, this is the 1st time I have a xml response with xsd structure so I must be missing something.

    ReplyDelete
  2. Try to ask on stackoverflow.com and be very specific with code. Tag it with delphi and xml tags. Usually I got good answers on my questions.

    ReplyDelete
  3. Thank you Roland! I will ask there :)

    ReplyDelete
  4. Due deadline I made a recursive parser and solved it, it's not an orthodox approach but I was out of options.

    ReplyDelete

Post a Comment