I am acessing a REST API. It returns XML.
I am trying to put that XML into a VFP9/foxpro cursor. I have never done this before.
I call the service passing it a request in XML format. No problems with that part.
lcXmlResult = loHttp.Post(" lcXml, "c:\temp\xmlreturned.xml")
XMLTOCURSOR("c:\temp\xmlreturned.xml","",512)
It creates the cursor named XMLResult.
It creates 1 column in the cursor named Response. The field type is Memo.
It adds 5 records all of which are empty except the 5th record where the memo field contains what looks like all of the XML in that one memo field.
I have attached the xmlreturned.xml file.
It looks like I am getting 1 person everytime you see the node <JailInmateTable>
In a perfect world, when I issue the XMLTOCURSOR, I would get 1 row in the cursor per instance of <JailInmateTable> with every node being a column.
Perhaps it would be easier to just read the file as a text file and parse out what I need but I was hoping that would not be necessary.
Thanks,
John
I am trying to put that XML into a VFP9/foxpro cursor. I have never done this before.
I call the service passing it a request in XML format. No problems with that part.
lcXmlResult = loHttp.Post(" lcXml, "c:\temp\xmlreturned.xml")
XMLTOCURSOR("c:\temp\xmlreturned.xml","",512)
It creates the cursor named XMLResult.
It creates 1 column in the cursor named Response. The field type is Memo.
It adds 5 records all of which are empty except the 5th record where the memo field contains what looks like all of the XML in that one memo field.
I have attached the xmlreturned.xml file.
It looks like I am getting 1 person everytime you see the node <JailInmateTable>
In a perfect world, when I issue the XMLTOCURSOR, I would get 1 row in the cursor per instance of <JailInmateTable> with every node being a column.
Perhaps it would be easier to just read the file as a text file and parse out what I need but I was hoping that would not be necessary.
Thanks,
John