The root element of an SVGDocument must always be an 'svg' element in the svg namespace. My suspicion given that writing to a string and reparsing works is that while you have an 'svg' element it is not in the svg namespace (although it may have an appropriate xmlns attribute).
Thx, this was the cause of my problem. I just added an default namespace deklaration to the svg element and all works proper.
Feature request:
Improvement of the errorhandling. For example the exception could say "wrong namespace" or something like that.
It is also not ideal when the beheavior of the two constructors differs. So for example both methods should throw an exception or both ones should add the svg namespace when there is no other default namespace declared. Currently the beheavior of batik in this case is not pursuable for an project outsider like me.
thx cybi
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
