Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Editor拡張によるCSVからXMLへの変換結果
// CSV
enemyName,maxHp,atk,def,exp,gold
スライム,4,2,2,1,2
ゴブリン,8,4,2,2,3
ジャイアントマウス,12,5,3,3,5
// XML
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Root>
<Data>
<enemyName>スライム</enemyName>
<maxHp>4</maxHp>
<atk>2</atk>
<def>2</def>
<exp>1</exp>
<gold>2</gold>
</Data>
<Data>
<enemyName>ゴブリン</enemyName>
<maxHp>8</maxHp>
<atk>4</atk>
<def>2</def>
<exp>2</exp>
<gold>3</gold>
</Data>
<Data>
<enemyName>ジャイアントマウス</enemyName>
<maxHp>12</maxHp>
<atk>5</atk>
<def>3</def>
<exp>3</exp>
<gold>5</gold>
</Data>
</Root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment