Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← XML in Practice - Data Wranging with MongoDB

Get Embed Code
4 Languages

Showing Revision 2 created 05/24/2016 by Udacity Robot.

  1. We can represent most things by a list of properties and

  2. their values. Think about how you would represent you or your
  3. cell phone, the email in your inbox. Maybe even events, such
  4. as the last party you attended. Mostly a list of key value
  5. pairs, right. Key value pairs or dictionaries as they're called in
  6. Python, make a lot of sense as a way to represent data.
  7. Primarily because it's so natural to represent so much of the
  8. data we care about this way. Let's think about the you example
  9. for a minute. In my case, some of the
  10. features might be. Eyes, brown. Hair, brown. Height, 6'2.
  11. Weight, I'll leave that as an exercise for the
  12. viewer. Note that name pairs are very different from documents.
  13. With the document, we have sections, containing subsections, containing
  14. paragraphs, containing sentences. This type of nesting or tree
  15. structure is exactly the type of structure that XML
  16. was designed to work with. In practice you'll find that
  17. XML is used for many purposes, even those for which it's probably not the
  18. best choice, and others for which one could argue it's not appropriate. In order
  19. to ensure you're ready to wrangle XML in all its forms, we'll give you
  20. some practice working with applications of XML,
  21. to both documents and key value data.