axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Daniels <g...@thoughtcraft.com>
Subject Re: [axis2] Writing an empty element?
Date Tue, 30 Aug 2005 15:12:52 GMT
Hi Alek:

>>> BTW: to bad that solutoion from XmlPull API did nto survive in StAX 
>>> i.e. it was intelligent to do <empty/> by default unless you called 
>>> character("") in between.
>>
>> +1, that's what Axis 1 does as well.
> 
> hmm,  i will take a look and see if i can change this for StAX RI - 
> after all infoset is equivalent ...

+1!  That would rock.

writeStartElement("test");
writeAttribute("foo", "bar");
writeEndElement();

<test foo="bar"/>

--Glen

Mime
View raw message