Well, it's not really an XSLT or Xalan question, but
Xalan and JAXP/TrAX provide an easy solution: just use
an identity transformer.  There are examples in the
doc or the mailing list, something like:
Transformer identity =
transformerFactory.newTransformer();
identity.transform(new DOMSource(yourTotoNode), new
StreamResult(someStreamWriter));

The identity transformer simply takes it's source (as
a DOM, SAX events, or a Stream) and spits out a result
(as a DOM, SAX events, or a Stream).

- Shane

> MAHE Vincent FTRD/DIH/REN wrote:
> >
> > Is it possible to serialize as a java string the
content of one node and all
> > its descendants ?
> >
> > For example, if I have the following node :
> >         <toto class="titi">
> >                 <titi>bla bla</titi>
> >         </toto>
> >
> > I want to get the following string : "<toto
class="titi">\n<titi>bla
> > bla</titi>\n</toto>"
> >
> > Thanks.
> >
> > Vincent Mahe



=====
<eof aka="mailto:[EMAIL PROTECTED]";
 humor="'A Midsummer Night's Dream' - pick your quote" />

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Reply via email to