Re: [libxml++] Propose Document::create_root_node_by_import ()



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Jim Garrison wrote:

|
| -----Forwarded Message----- From: Jim Garrison <garrison case edu>
| To: libxmlplusplus-general lists sourceforge net Subject: Propose
| Document::create_root_node_by_import () Date: Wed, 28 Jan 2004
| 22:21:16 -0500
|
| Hello,
|
| I would like to propose the addition of a function to
| xmlpp::Document. Right now, one can only create a root node with
| the given function create_root_node(), and then manipulate that
| Node.  My proposed function (something like
| Document::create_root_node_by_import) would take a Node from an
| existing Document and import it in the spirit of
| Node::import_node().  So basicly, this adds the import
| functionality so that an entire document can be created from a
| arbitrary Node in a different document.
|
| The biggest reason I need to do this is so that I can create a
| string that holds all the XML within a certain node.  If there's a
| better way to do this, please let me know.  If not, would this type
| of patch be accepted?  If so, would it be able to go in the 1.0
| branch?  I don't think it would break anything in terms of the ABI.
|
|

Hi,

The way you propose to implement the functionnality, you will have the
xml header in the resulting string. If it's what you want then it's
probably the best way to do it.
A patch is welcome, and will probably go in 1.0 branch is ABI is not
broken.

Cheers,

Christophe

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAIMUpB+sU3TyOQjARAgSJAJ9SZOkKdCU2O5K1MjsepDJkv4f8lwCggllB
19JqHRtGO/OMvo2R/GBv4PM=
=f3qP
-----END PGP SIGNATURE-----





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