Re: [xml] Any easy way to check if a node is in doc already?
- From: Kasimier Buchcik <K Buchcik 4commerce de>
- To: "Yong Chen (yongche)" <chen cisco com>
- Cc: ML-libxml2 <xml gnome org>
- Subject: Re: [xml] Any easy way to check if a node is in doc already?
- Date: Wed, 29 Mar 2006 12:23:11 +0200
Hi,
On Tue, 2006-03-28 at 19:22 -0800, Yong Chen (yongche) wrote:
Hi,
What I want is to check if an exact node is already in doc, if not, then
add it to the doc.
An "exact node" means a node having the same name, attributes, type,
etc.
There's no built-in function for what you want to do.
Just walk the whole tree and compare the nodes (and their content) on
your side.
Regards,
Kasimier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]