Click here to Skip to main content
15,896,207 members
Please Sign up or sign in to vote.
1.33/5 (3 votes)
See more:
How i can add elements or nodes to an existing xml document?

Example: I have this:

<comprobante>
<complento />
</comprobante>

and want get this
<comprobante>
<complento />
  <tdf:timbre and="" more="" information="" here="" xmlns:tdf="#unknown">
</tdf:timbre></comprobante>


Can someone show me how to do it? Really appreciated.
thanks

Edit: formatting, spelling, grammar [Yvan Rodrigues]
Posted
Updated 9-Jun-11 14:51pm
v3
Comments
Sergey Alexandrovich Kryukov 9-Jun-11 19:27pm    
Fix formatting! It shows nothing.
--SA
Yvan Rodrigues 9-Jun-11 20:52pm    
Which version of the .NET runtime are you targeting?

1 solution

Check these pages:

Reading and Writing XML Documents with the XmlTextReader and XmlTextWriter Class and C#:
http://msdn.microsoft.com/nl-NL/vcsharp/aa336739.aspx[^]

XML Documentation Tutorial:
http://msdn.microsoft.com/en-us/library/aa288481(v=VS.71).aspx[^]

Link to other tutorials and samples:
http://msdn.microsoft.com/en-us/vcsharp/aa336738[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900