aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven DBUnit Configuration..how to enable shorthand syntax? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven DBUnit Configuration..how to enable shorthand syntax?" Watch "Maven DBUnit Configuration..how to enable shorthand syntax?" New topic
Author

Maven DBUnit Configuration..how to enable shorthand syntax?

Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

Hi Guys,

Can someone please tell me how to configure the Maven DBUnit to use the shorthand syntax when exporting the xml dataset...
For example when I create XML files for DBUnit to populate the test database from, I can use a shorthand syntax where the XML tag name is the table name and the tag attributes are the column names...
but when I use the maven DBUnit plugin to export the test data as XML from a different database , the XML it generates looks like this:


Which is giving me a huge headache since the file is ridiculously large when there are many rows....
Any ideas please?I am using Maven 3.....


===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

Solved.... you just need to specify the format as flat (not xml)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Maven DBUnit Configuration..how to enable shorthand syntax?