ScratchData LogoScratchData
Back to fullmoon's profile

XML Parser (sort of)

FUfullmoon•Created November 4, 2009
XML Parser (sort of)
33
27
1527 views
View on Scratch

Description

Deep in the Amazon jungle, there exists a tribe with the custom that when a young man or woman comes of age, they must spend ten days alone in the rainforest building an XML parser with Scratch. In an attempt to replicate this act of enormous courage, I've devised a way to parse XML nodes (which will eventually turn into parsing whole XML documents) into lists. For those of you unfamiliar with the delights of XML, it'sa data interchange format similar to HTML that's very popular for sending things like RSS feeds across the web. Anyway, all this project does is determines that your XML is valid (begins with < ends with >, no open quotes, valid identifiers) and parses its name, and all of its attribute names and values, into a list. Try something like this: <item name="ming vase" price="$50,000" breakable="true"> and see what happens. Have fun, or as much fun that it's possible to have with XML ;)

Project Details

Project ID745249
CreatedNovember 4, 2009
Last ModifiedNovember 4, 2009
SharedNovember 4, 2009
Visibilityvisible
CommentsAllowed