Column names with a "#"

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view

Column names with a "#"

Kevin Kalmbach
I saw this asked back in 2009 (, but it never got an answer.

Is there a way to use a flat xml dataset with a table that has a "#" in a column name?

if I have xml that looks like this:
<table col#="123" col2="abc">,
I get an xml parsing exception (you can't have a "#" in the attribute name)
You also can't replace the # with &#35;  This gives a similar exception.

Any help would be appreciated.

Here is the stack trace I get.
rg.dbunit.dataset.DataSetException: Line 35: Attribute name "COL" associated with an element type "TABLE" must be followed by the ' = ' character.
at org.dbunit.dataset.xml.XmlProducer.buildException(
at org.dbunit.dataset.xml.FlatXmlProducer.produce(
at org.dbunit.dataset.CachedDataSet.<init>(
at org.dbunit.dataset.xml.FlatXmlDataSet.<init>(
at org.dbunit.dataset.xml.FlatXmlDataSetBuilder.buildInternal(

Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
dbunit-user mailing list
[hidden email]
Reply | Threaded
Open this post in threaded view

Re: Column names with a "#"

I'm having the exact same issue. If anyone has a solution please post it.