Requesting Code Example

41 views
Skip to first unread message

pk2027

unread,
Apr 22, 2015, 12:37:44 PM4/22/15
to scale...@googlegroups.com
Hi,

I was looking for a way to parse xml in Scala and I came across Scales which I found very useful for it's ability to parse large files(my use case involves files > 1GB).

However being very new to Scala and Web-development as a whole, I am having trouble understanding the documents properly. I need to parse the following string which is a Amazon ItemLookUp result.

String :

<ItemLookupResponse
    <OperationRequest>
        .
        .
    </OperationRequest>
    <Items>
        <Item>
   <ItemAttributes>
                .
                .
            </ItemAttributes>
            <OfferSummary>
                <LowestNewPrice>
                    <Amount>287000</Amount>
                    .
                    .
                </LowestNewPrice>
            </OfferSummary>
        </Item>
    </Items>
</ItemLookupResponse>

Can anyone please provide any code example for parsing this string to obtain the value of <Amount> tag ? 
Reply all
Reply to author
Forward
0 new messages