[xslt] Using libxslt to convert XML to non-XML
- From: Holger Rauch <Holger Rauch heitec de>
- To: xslt gnome org
- Subject: [xslt] Using libxslt to convert XML to non-XML
- Date: Mon, 2 Sep 2002 11:25:52 +0200 (CEST)
Hi!
I'm using libxslt to apply a stylesheet converting a XML file to
space-separated values. Clearly, the output is no longer well-formed
XML. So, my question is: How do I use the xmlDocPtr to
access non-XML contents returned by xsltApplyStylesheet? I tried the
following, but that of course doesn't work since the output produced by
the stylesheet is not XML, so there is no root node:
result = xsltApplyStylesheet( style, doc, NULL );
rootNode = xmlDocGetRootElement( result );
xmlBuff = xmlBufferCreate();
xmlNodeDump( xmlBuff, result, rootNode, 0, 1 );
result_set = g_string_new( xmlBufferContent( xmlBuff ) );
Thanks in advance for any help!
Greetings,
Holger
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]