Convert XML To Flat File Test Data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def data = '''<?xml version="1.0"?> | |
<catalog> | |
<book id="bk101"> | |
<author>Gambardella, Matthew</author> | |
<title>XML Developer's Guide</title> | |
<genre>Computer</genre> | |
<price>44.95</price> | |
<publish_date>2000-10-01</publish_date> | |
</book> | |
<book id="bk102"> | |
<author>Ralls, Kim</author> | |
<title>Midnight Rain</title> | |
<genre>Fantasy</genre> | |
<price>5.95</price> | |
<publish_date>2000-12-16</publish_date> | |
</book> | |
<book id="bk103"> | |
<author>Corets, Eva</author> | |
<title>Maeve Ascendant</title> | |
<genre>Fantasy</genre> | |
<price>5.95</price> | |
<publish_date>2000-11-17</publish_date> | |
</book> | |
</catalog> | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment