title: libxml xmlNodePtr to raw xml string?
body: <p>Given a valid, arbitrary xmlNodePtr, I would like the string representation of that node, including the tag, attributes, and children in the same form (recursive).</p>
  
  <p>FWIW, my scenario is I am using PerformXPathQuery to get a block of data from within an existing document. I need to get the results of the query, which has nested XML elements in it, as the raw string, so I can insert it into a text field.</p>
  
  <p>These seems like a simple task, however I cannot find an easy way. Writing an xmlDocPtr to file must do this, however, I cannot see a handy method that will do the same thing to an arbitrary node in the tree, and return it in memory.</p>
  
  <p>I hope I am just going blind from the brown-on-brown documentation color scheme at xmlsoft.org </p>