Re: [xml] libxml2 question: how can I insert the <? xml-stylesheet ... ?> tag in a document

On Tue, Dec 02, 2003 at 08:52:31AM +0100, LE BRETON Philippe wrote:

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:


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]