From: Mike B. <MBr...@go...> - 2003-04-17 16:38:16
|
I'm still looking for an answer to the question posed in the attached = post. I often have data that in used in many test cases and I would = like to avoid the maintainence headache of including it redudantly in = the dataset XML file for every test case that needs it. One nice way to = avoid the headache would be to put the common data into a separate XML = file and include it in the dataset XML for each test case. However, the = XML parser used by DBUnit does not appear to support this. See the = attached post. Mike -------- The XML parser used by DbUnit ignores entity references. For example, = the following code does not produce an error: =20 <?xml version=3D"1.0" encoding=3D"UTF-8"?> <dataset> &thisEntityDoesNotExist; </dataset> =20 Nor does the following document produce the results I am expecting: =20 <?xml version=3D"1.0" encoding=3D"UTF-8"?> <!DOCTYPE dataset [<!ENTITY commonStuff SYSTEM "./commonStuff .xml">]> <dataset> &commonStuff ; </dataset> =20 Instead of pulling in the contents of commonStuff.xml, it simply = ignores the entity reference. =20 Someone please tell me a simple way to fix this if there is one. =20 Mike |