Introducció i estructura de les dades en XML

De Wiket
Salta a la navegació Salta a la cerca

volver a M04 Lenguajes de marcas y sistemas de gestión de información

Material de teoria i soporte

El material de consulta será el contenido de la edición digital del libro Llenguatges de marques de la IOC

Ejercicios

  1. Se ha capturado una comunicación entre dos hackers MUY FAMOSOS perseguidos por la ley. Uno de ellos es culpable de prácticamente todos los delitos informáticos tipificados en las leyes.Lo único que sabemos con seguridad es que el código se generó desde un ordenador que utilizaba ASCII para su codificación. ¿Que dice el mensaje?. ¿Quienes son los interlocutores?
    0100011001101111011011000110110001101111011101110010000001110100011010000110010100100000011101110110100001
    101001011101000110010100100000011100100110000101100010011000100110100101110100
  2. Tenemos información sobre videojuegos codificada en formato XML, el problema es que algunos alumnos que no saben XML no entienden la información. El tema es que estos alumnos han estudiado excel y estan acostumbrados a trabajar con archivos ".csv" (comma-separated values) y nos piden que codifiquemos el XML en formato CSV.
    <Catalog>
        <Game id="bk101">
            <Developer>Epic Games</Developer>
            <Publisher>Epic Games</Publisher>
            <Title>Fortnite</Title>
            <Genre>Battle Royale</Genre>
            <Price>free-to-play</Price>
            <PublishDate>2017-07-25</PublishDate>
            <Description>Fortnite is an online video game developed by Epic Games and released in 2017. It is available in three distinct game mode versions that otherwise share the same general gameplay and game engine: Fortnite: Save the World, a cooperative shooter-survival game for up to four players to fight off zombie-like creatures and defend objects with fortifications they can build, Fortnite Battle Royale, a free-to-play battle royale game where up to 100 players fight to be the last person standing, and Fortnite Creative, where players are given complete freedom to create worlds and battle arenas</Description>
        </Game>
        <Game id="bk102">
            <Developer>Massive Entertainment</Developer>
            <Publisher>Ubisoft</Publisher>
            <Title>The Division 2</Title>
            <Genre>Action Role-Playing</Genre>
            <Price>49.90</Price>
            <PublishDate>2019-03-15</PublishDate>
            <Description>Tom Clancy's The Division 2 is an upcoming online action role-playing video game developed by Massive Entertainment and published by Ubisoft. The sequel to Tom Clancy's The Division</Description>
        </Game>
        <Game id="bk103">
            <Developer>Bioware</Developer>
            <Publisher>EA</Publisher>
            <Title>Anthem</Title>
            <Genre>Action Role-Playing</Genre>
            <Price>54.90</Price>
            <PublishDate>2019-2-22</PublishDate>
            <Description>Anthem combines third-person shooter and action role-playing game elements in a "contiguous open world" shared with up to three other players in which they take the role of a Freelancer donning fully customizable exosuits called Javelins.</Description>
        </Game>
        <Game id="bk104">
            <Developer>Bungie</Developer>
            <Publisher>Activision</Publisher>
            <Title>Destiny 2</Title>
            <Genre>Frist Person Shooter</Genre>
            <Price>16.50</Price>
            <PublishDate>2017-09-06</PublishDate>
            <Description>Destiny 2 is an online-only multiplayer first-person shooter video game developed by Bungie and published by Activision.</Description>
       </Game>
       <Game id="bk105">
            <Developer>DICE</Developer>
            <Publisher>EA</Publisher>
            <Title>Battlefront II</Title>
            <Genre>Frist Person Shooter</Genre>
            <Price>26.97</Price>
            <PublishDate>2017-11-17</PublishDate>
            <Description>Star Wars Battlefront II is an action shooter video game based on the Star Wars film franchise. It is the fourth major installment of the Star Wars: Battlefront series and seventh overall, and a sequel to the 2015 reboot of the series.</Description>
       </Game>
    </Catalog>
    
  3. Mario pixel.jpg