RE: [xml] processing PI in libxml



hi,

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 ?
  http://xmlsoft.org/html/libxml-tree.html#xmlNewPI
  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,
vassily

mailto:vr[at]vrgraphics.ru
pgp key id 0x92B4A97C
 




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