[xml] =?utf-8?q?dump_node_=28not_recursive=29?=



Hello,

I want to dump a node (with its properties and content) but xmlNodeDump doesn't exactly do what i want.

the xml file is like
-------------------------
<xml>
 <node1 name="hello">
  <node1_2>content</node1_2>
 </node1>
</xml>
---------------------

when the current node is node1 i want to get the result 
<node1 name="hello">

when the current node is node1_2 i want to get the result 
<node1_2>content</node1_2>



with the function xmlNodeDump (and node is node1) i have the result
 <node1 name="hello">
  <node1_2>content</node1_2>
 </node1>
This is to much in-depth infomation for me


I hope there is a default function for this.

Cheerz, Corley



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