Paste: XML parser bug?

Author: x6j8x
Mode: xml
Date: Sun, 15 Mar 2009 15:02:43
Plain Text |
<?xml version="1.0"?>
<ItemSearchResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2005-10-05">
    <Items>
        <Item>
            <CustomerReviews>
                <Review>
                    <ASIN>B0000589MY</ASIN>
                    <Rating>5</Rating>
                    <HelpfulVotes>1</HelpfulVotes>
                    <CustomerId>A23Y2X4ZRPRCIY</CustomerId>
                    <TotalVotes>8</TotalVotes>
                    <Date>2005-01-19</Date>
                    <Summary>Entspannt, Schön</Summary>
                    <Content>Dieses Album ist sehr ruhig, nur die beiden Gitarren, und ab und zu ein
                        dezent eingesetztes Schlagzeug führt durch die Lieder, die meiner Meinung
                        nach alle sehr gut sind.</Content>
                </Review>
            </CustomerReviews>
        </Item>
    </Items>
</ItemSearchResponse>

Annotation: factor code snippet

Author: x6j8x
Mode: factor
Date: Sun, 15 Mar 2009 15:03:47
Plain Text |
path-to-file utf8 file-contents
[ input-stream get [ . ] each-element ] with-string-reader

Annotation: Output snippet

Author: x6j8x
Mode: factor
Date: Sun, 15 Mar 2009 15:05:11
Plain Text |
T{ opener
    { name
        T{ name
            { space "" }
            { main "Summary" }
            { url
                "http://webservices.amazon.com/AWSECommerceService/2005-10-05"
            }
        }
    }
}
"Entspannt, Sch�Summary>\n                    "

New Annotation

Summary:
Author:
Mode:
Body: