Creating XML attribute children

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I need to create something like the following attributes in the specified
file, without using XmlWriter.


<Documents>
<Grids>
<Grid1>
<Width> 13</Width>
<Height> 43</Height>
<Columns> 5</Columns>
</Grid1>
<Grid2>
<Width> 13</Width>
<Height> 43</Height>
<Columns> 5</Columns>
</Grid2>
</Grids>

<Attr1> 4343</Attr1>
<Attr2> 4343</Attr2>
</Documents>
 
Hi,

You could do it using the XmlDocument as well, but it's more
complicated that way. Any particular reason why you must eschew
XmlWriter (which is designed for this purpose) ?

Regards,

Cerebrus.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top