PC Review


Reply
Thread Tools Rate Thread

Adding new XML nodes...

 
 
=?Utf-8?B?QXNoYQ==?=
Guest
Posts: n/a
 
      10th Aug 2005
Hello, below is a xml file which I’m working with. I want my result to be
like this

<group name="grp 4">
<report>
<name>MTIS_1</name>
</report>
<report>
<name>MTIS_1</name>
</report />
<report>
<name>MTIS_2</name>
</report>
</group>

but instead it came outlike this.

<group name="grp 4">
<report>
<name>MTIS_1</name>
<name>MTIS_1</name>
<name>MTIS_2</name>
</report>
<report />
<report />
</group>

what I want to do is, append the new attribute which is "name" into a new
report node, but instead, it keeps adding into an existing report node... how
can I overcome this problem whereby I want to add new attribute call "name"
into individual report node?

 
Reply With Quote
 
 
 
 
Patrick.O.Ige
Guest
Posts: n/a
 
      11th Aug 2005
Asha try seeing this article it should guide you:-
http://aspnet.4guysfromrolla.com/articles/112603-1.aspx
Or if possible post what actually you are trying to do
Patrick


"Asha" <(E-Mail Removed)> wrote in message
news:48DC1EE0-572B-464E-BC14-(E-Mail Removed)...
> Hello, below is a xml file which I'm working with. I want my result to be
> like this
>
> <group name="grp 4">
> <report>
> <name>MTIS_1</name>
> </report>
> <report>
> <name>MTIS_1</name>
> </report />
> <report>
> <name>MTIS_2</name>
> </report>
> </group>
>
> but instead it came outlike this.
>
> <group name="grp 4">
> <report>
> <name>MTIS_1</name>
> <name>MTIS_1</name>
> <name>MTIS_2</name>
> </report>
> <report />
> <report />
> </group>
>
> what I want to do is, append the new attribute which is "name" into a new
> report node, but instead, it keeps adding into an existing report node...

how
> can I overcome this problem whereby I want to add new attribute call

"name"
> into individual report node?
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Specifying the parent when adding treeview nodes? SQACSharp Microsoft C# .NET 7 28th Nov 2007 08:00 AM
Adding controls to Treeview nodes possible? =?Utf-8?B?U2hhbmU=?= Microsoft ASP .NET 4 3rd Mar 2007 03:59 PM
Adding nodes to treeview =?Utf-8?B?Sm9obg==?= Microsoft Excel Programming 3 1st Dec 2004 09:07 PM
Adding nodes to a treeview only when needed =?Utf-8?B?cG1jZ3VpcmU=?= Microsoft VB .NET 4 23rd Apr 2004 01:08 PM
Adding Nodes to a TreeView sho_nuff Microsoft C# .NET 3 17th Jan 2004 11:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:06 AM.