![]() |
Treenodes kopieren
Also ich habe eine xml-Datei und darin ist ein Knoten namens SET
Auszug:
Code:
Da bei <Set LineNo="1"> bei Count 3 steht möchte ich nun diesen Tree kopieren und unterhalb zweimal einfügen und die LineNo bei allen drei auf 101, 102, 103 ändern.
<BuilderList>
<Set LineNo="1"> <Pname>KP_R02</Pname> <Count>3</Count> <Program>KP</Program> <PInsertion>0,0,0</PInsertion> <POrntation></POrntation> </Set> <Set LineNo="2"> <Pname>KP_R02</Pname> <Count>2</Count> <Program>KP</Program> <ARTICLE_PRICE_INFO1>151.94</ARTICLE_PRICE_INFO1> <ARTICLE_PRICE_INFO2>217.06</ARTICLE_PRICE_INFO2> <PInsertion>0,0,0</PInsertion> <POrntation></POrntation> </Set> </BuilderList> zudem möcht ich die anzahl bei Count auf 1 ändern. Ich weiss zwar wie ich Count und LineNo ändern kann aber WIE FUNKTIONIERT DAS KOPIEREN UND DRUNTER EINFÜGEN?! Ich habs probiert mit: XMLDocument1.DocumentElement.ChildNodes[0].ChildNodes[1].ChildNodes[0].CloneNode(True); aber ich check nicht was er da macht?? bitte um hilfe |
AW: Treenodes kopieren
Schau mal in die Hilfe zu CloneNode:
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:18 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz