commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Praher <jpra...@yahoo.de>
Subject [BETWIXT][patch] SAXBeanWriter
Date Thu, 13 Feb 2003 19:34:17 GMT
** this is just a resend, since I got no response, perhaps adding 
the project in the subject will help .. **

hi all,


I am using SAXBeanWriter in a Cocoon Environment.
for this I had to patch the SAXBeanWriter to do the following:

I)

startElement( "", qname, qname , atts ) instead of
startElement( "", "", qname, atts ) 

-> the same for endElement

this behaviour is the "default", looked in examples and books for sax
nodes that have no namespace.
plus the SAXTransformer used in cocoon doesn't accept the original style
(simple didn't display it )

II)

optionalized the calls to startDocument( ) endDocument( ), which are
called in start(), end( ).

add a constructor element, the default behaviour is backward
compatiblity.

reason: frequently, in generators, you don't have control over the whole
document ( this violates xml ioc ;-) )

attached you find a patch against CVS 1.6 version.

thanks

-- Jakob

Mime
View raw message