# Xml Help (Visual C++)

**URL:** https://forum.kirupa.com/t/xml-help-visual-c/228353
**Category:** programming
**Created:** [June 7, 2007, 3:33am UTC](https://forum.kirupa.com/t/xml-help-visual-c/228353 "2007-06-07T03:33:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nist1](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nist1](https://forum.kirupa.com/u/nist1)
#### Post date: [June 7, 2007, 3:33am UTC](https://forum.kirupa.com/t/xml-help-visual-c/228353/1 "2007-06-07T03:33:11Z")

</div>

I’m trying to read from an Xml file like this:

\<book\>  
\<title\>foo\</title\>  
\<author\>foo\</author\>  
\<publisher\>foo\</publisher\>  
\</book\>

and I want to read in each element and write them to another file but I want the inner text in the child nodes to come from text boxes on my form. I am so lost. I tried it with an XmlReader and XmlWriter but It didnt really work for me.

:toad:

Also later on I want to read the child node tags (title, author, publisher) into labels on the form and the inner text into text boxes on the form. like this:

Title: foo  
Author: foo  
Publisher: foo

If this is possible.? Any help is appreciated. I do have the unworking code if someone wants to see what I have. :mario:

Basically, it would have to be a method to be able to read any file and write the elements to another file with the element content from text boxes.
