Re: kxml - parsing AWS API xml respond

2015-10-21 Thread opticron via Digitalmars-d-learn
On Tuesday, 20 October 2015 at 16:53:19 UTC, holo wrote: When im checking instance name with such code: auto test = list.parseXPath(`//tagSet/item[key="Name"]/value`)[0].goCData; it is compiling properly but it is breaking program when is no name set. I make quick workaround: auto

Re: kxml - parsing AWS API xml respond

2015-10-20 Thread opticron via Digitalmars-d-learn
I think part of the issue here is that holo isn't quite sure of what information [s]he needs out of the XML reply and how to do that with XPath. The first post mentioned getting instanceId and launchTime, so I'll start there using the AWS example XML found here: https://github.com/polopoly/clo