Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / September 2006



Tip: Looking for answers? Try searching our database.

Help with erplacing xml using VB.Net or C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
James Fifth - 27 Sep 2006 22:44 GMT
Hello and God Bless,

I am stumped trying to get a simple xml database replacing certain data
with other data programmatically. This is what my xml looks like.

****************************************
<Root_Element>
   <Topic index="1">
       <Sub_Topic>
           <Notes></Notes>
           <Notes></Notes>
       </Sub_Topic>
   </Topic>
   <Topic index="2">
       <Sub_Topic>
           <Notes></Notes>
           <Notes></Notes>
           <Notes></Notes>
       </Sub_Topic>
       <Sub_Topic>
           <Notes></Notes>
       </Sub_Topic>
   </Topic>
   <Topic index="3">
       <Sub_Topic>
           <Notes></Notes>
       </Sub_Topic>
   </Topic>
</Root_Element>
****************************************

What i want to do is navigate to <Topic index="2">, and replace all
child nodes under it with new nodes.

Keep in mind that the number of nodes replacing the current ones will be
different. For instance, i wll replace the 2 <Sub_Topics> under <Topic
index="2"> with 4 <Sub_Topics> with different <Notes> under them.

I can read both C# and VB.Net, so it doesnt matter what language you
write in. Please help me.

Thank you all, and God Bless.
Ralph - 28 Sep 2006 03:25 GMT
> I can read both C# and VB.Net, so it doesnt matter what language you
> write in. Please help me.

Unfortunately neither of those are spoken here. This is a Classic VB
newsgroup (VB6 and lower). For dotNet issues you need to post in a dotnet
newsgroup.

  microsoft.public.dotnet.general
  microsoft.public.dotnet.languages.vb
  microsoft.public.dotnet.languages.vb.upgrade
  microsoft.public.dotnet.framework.sdk
  microsoft.public.vsnet.general
  microsoft.public.vstudio.general

-ralph
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.