diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/xml/document/README | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/xml/document/README')
-rw-r--r-- | library/cpp/xml/document/README | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/xml/document/README b/library/cpp/xml/document/README index b2649523d8..164d3a1c9c 100644 --- a/library/cpp/xml/document/README +++ b/library/cpp/xml/document/README @@ -16,9 +16,9 @@ The standard way to use it is as follows: using namespace NXml; TConstNode& node = nodes[i]; // query node - TString name = node.Name(); - TString lang = node.Attr<TString>("lang"); - TString text = node.Value<TString>(); + TString name = node.Name(); + TString lang = node.Attr<TString>("lang"); + TString text = node.Value<TString>(); TConstNode child = node.GetFirstChild(""); // edit node TNode node = child.ConstCast(); @@ -34,9 +34,9 @@ The standard way to use it is as follows: // copy node's subtree from one document to another place.AddChild(xml.Root()); // save (render) single element - TString modifiedNode = place.ToString(); + TString modifiedNode = place.ToString(); // save whole document with optional encoding - TString modifiedDoc = xml2.ToString("ISO-8559-1"); + TString modifiedDoc = xml2.ToString("ISO-8559-1"); See xml-document_ut.cpp for more examples. |