RE: [xml] processing PI in libxml


can someone please give some hints on how do I replace PIs in the 
parsed document tree (xmlDoc) with some xml nodes I want. 

  Have you checked the tree API ?
  there is a number of APIs there to do this kind of things

xmlNewPI does just the oppposite to what I want. 
I have PIs in my xmlDoc, and I want to replace them for some generated xml,
if target matches.
Would navigating throught the tree node by node and using xmlReplaceNode be
the right way to do it or there is more simple way of doing it?

resourcefully yours,

pgp key id 0x92B4A97C

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