ni.com is currently experiencing slowness/issues due to ongoing maintenance.
Support teams are actively working on the soonest resolution.
ni.com is currently experiencing slowness/issues due to ongoing maintenance.
Support teams are actively working on the soonest resolution.
07-15-2020 10:24 PM
Hi all.
NXG Newbie
Having trouble interpreting this response from HTTP GET
<Response><Terminal><Name>FirstName</Name><Value>Keith</Value></Terminal></Response>
Obviously, I am looking to use an indicator named FIrstName to display Keith
What is the magic incantation?
What am I missing?
Keith
Solved! Go to Solution.
07-16-2020 10:34 AM - edited 07-16-2020 10:35 AM
Hi Keith,
The response looks to be formatted as XML which NXG does not have built-in support for handling yet. If you need to parse the response as XML there may be exisiting XML libraries that can be migrated to NXG, etc.
Looking at the format it does seem like the response is coming from a LabVIEW Web Service. If you have control of the LabVIEW Web Service you can change the response format to JSON:
Then for the following example Web Method:
You get the following response:
Which can be parsed in LabVIEW NXG using the Unflatten from JSON VI:
07-16-2020 10:06 PM
Thanks VERY much !!