You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Michael Hughes <mi...@gf-x.com> on 2003/04/17 16:49:17 UTC

From XalanDocument -> std::ostream ??

Once you have transformed a document, and have the resulting
XalanDocument, what's the eaiest way of serialising that to a
std::ostream ?

For example, I would like to write:-
  XalanDocument MyTransformedDocument ;
  //...
  ...
  std::cout << MyTransformedDocument

Thanks in advance.


Re: From XalanDocument -> std::ostream ??

Posted by da...@us.ibm.com.



Search the code for FormatterTreeWalker.  You will find multiple instances
where source tree are serialized as XML.

Dave



                                                                                                                                   
                      "Michael Hughes"                                                                                             
                      <michael.hughes@         To:      <xa...@xml.apache.org>                                             
                      gf-x.com>                cc:      (bcc: David N Bertoni/Cambridge/IBM)                                       
                                               Subject: From XalanDocument -> std::ostream ??                                      
                      04/17/2003 07:49                                                                                             
                      AM                                                                                                           
                                                                                                                                   



Once you have transformed a document, and have the resulting
XalanDocument, what's the eaiest way of serialising that to a
std::ostream ?

For example, I would like to write:-
  XalanDocument MyTransformedDocument ;
  //...
  ...
  std::cout << MyTransformedDocument

Thanks in advance.