[xml] Questions about XML


I'm trying to add the special tag <?xml-stylesheet type="text/xsl" href=""?> into my XML document, but I'm having trouble with this. First I got the root element by using xmlDocGetRootElement(), then I tried creating a PI node using xmlNewPI(), but I'm not sure what to pass as parameters into xmlNewPI(). Once the PI node is created, I'm suppose to call xmlAddPrevSibling() to add the new node to the document, right? Additionally, where should I be making these function calls: after xmlTextWriterStartDocument() or before xmlSaveFileEnc()? Any help would be greatly appreciated.

Thank you,


From ?will you?? to ?I do,? MSN Life Events is your resource for Getting Married.

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