Re: [xml] libxml2 question: how can I insert the <? xml-stylesheet ... ?> tag in a document
- From: Daniel Veillard <veillard redhat com>
- To: LE BRETON Philippe <philippe lebreton c-s fr>
- Cc: xml gnome org
- Subject: Re: [xml] libxml2 question: how can I insert the <? xml-stylesheet ... ?> tag in a document
- Date: Tue, 2 Dec 2003 05:46:02 -0500
On Tue, Dec 02, 2003 at 08:52:31AM +0100, LE BRETON Philippe wrote:
Hello,
I'd like to know how I could insert the special tag <? xml-stylesheet
... ?> in a document, just after the <?xml version="1.0" ... ?> and
before the Doc root element ??
I currently use libxml2 version 2.5.10
get the root element, create a PI node with the content needed
and add it as a previous sibling to your root element. The 3 calls
needed to do this are documented in the API docs:
http://xmlsoft.org/html/libxml-tree.html
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]