kxml - parsing AWS API xml respond
holo via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Oct 19 05:10:40 PDT 2015
On Monday, 19 October 2015 at 11:53:08 UTC, Kagamin wrote:
> On Monday, 19 October 2015 at 04:49:25 UTC, holo wrote:
>> Why there is needed that "//" before tag?
>
> That's an XPath expression.
>
Need, to read about that XPaths.
>> How to drop tags from respond? I have such result of parsing
>> by id tag:
>>
>> <instanceId>i-xxxxxx</instanceId>
>>
>> I need only value. Is there some equivalent to ".text" from
>> std.xml?
>
> Try getCData
> https://github.com/opticron/kxml/blob/master/source/kxml/xml.d#L309
getCData is working like expected.
Thank you for tips.
More information about the Digitalmars-d-learn
mailing list