I am playing around with JAXB persistence to Xindice, and was passing the data as a String.
Apparently there was a parsing error, which is a bit surprising as it was just marshalled from an object and looks fine as I can see. Anyway I noticed DOM being involved. Is it converted to a DOM tree in order to check to see if it is well formed ?? If so, how should I pass it, because creating a DOM tree seems quite a waste of CPU and memory The string that was passed : <data:MobileContract xmlns:data="http://commons.dspc.net/datamodel"> <data:AccountName>henrik</data:AccountName><data:CustomerNo>2222222</data:Cu stomerNo><data:ContractNo>123454</data:ContractNo><data:ContractType>std.bun dle</data:ContractType><data:PersonName><data:First>Henrik</data:First><data :Last>Vendelbo</data:Last></data:PersonName><data:CompanyName>BLUPRINTS</dat a:CompanyName><data:MobileNo>07930416886</data:MobileNo> <data:MobileNetwork>t-mobile.uk</data:MobileNetwork> <data:HomeHostName>localhost</data:HomeHostName><data:HomePortNo>80</data:Ho mePortNo></data:MobileContract>