Click here to Skip to main content
15,891,633 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralCannot cast from ControlCollection to ControlCollection Pin
Ed Hill _5_3-Jan-08 6:30
Ed Hill _5_3-Jan-08 6:30 
GeneralRe: Cannot cast from ControlCollection to ControlCollection Pin
Ed Hill _5_3-Jan-08 6:34
Ed Hill _5_3-Jan-08 6:34 
GeneralRe: Cannot cast from ControlCollection to ControlCollection Pin
Dave Kreskowiak3-Jan-08 7:16
mveDave Kreskowiak3-Jan-08 7:16 
GeneralRe: Cannot cast from ControlCollection to ControlCollection Pin
Ed Hill _5_3-Jan-08 22:25
Ed Hill _5_3-Jan-08 22:25 
GeneralInvoice Management System Pin
wEb GuRu...3-Jan-08 1:26
wEb GuRu...3-Jan-08 1:26 
GeneralRe: Invoice Management System Pin
Dave Kreskowiak3-Jan-08 5:03
mveDave Kreskowiak3-Jan-08 5:03 
GeneralRe: Invoice Management System Pin
wEb GuRu...3-Jan-08 5:09
wEb GuRu...3-Jan-08 5:09 
GeneralInserting XML Elements using XMlDocument Pin
Benny_Lava3-Jan-08 0:18
Benny_Lava3-Jan-08 0:18 
Hi,

I'm building an app that will heavily use XML for inserting,searching,replacing,deleting...

I have solved most of the mechanics, but I didn't see a huge bug in my idea.

I need to insert xmlNodes or xml Elements in specified places in the file. Currently i'm using :

xmlNode = xmldocument.createElement("Element1")
xmlNode.setAttributes("Att1",Val1)
xmlDocument.documentElement.firstChild.FirstChild.appendChild(xmlNode)

etc...

The huge flaw of this is of course, as the file changes so the positions of many elements change so firstchild.firstchild becomes a totally different element over time as I do work on the file. So it is somewhere else like : childNodes(12).appendChild...


My question is: Is there a way to insert files using XPath or something like that where I could specifiy the name of the element or the relative path to it. like

xmlDocument.appendChild("//Category/System/[@ID=5]/SubRoutines/[@level=3]

something like that, well you get the idea.

Thanks a lot!
GeneralRe: Inserting XML Elements using XMlDocument Pin
Dave Kreskowiak3-Jan-08 4:59
mveDave Kreskowiak3-Jan-08 4:59 
GeneralRe: Inserting XML Elements using XMlDocument Pin
Kschuler3-Jan-08 5:48
Kschuler3-Jan-08 5:48 
GeneralRe: Inserting XML Elements using XMlDocument Pin
Volker Weichert3-Jan-08 8:49
Volker Weichert3-Jan-08 8:49 
GeneralDatabase not updating after using insert on submit with linq. Pin
TechnoDev3-Jan-08 0:14
TechnoDev3-Jan-08 0:14 
GeneralRe: Database not updating after using insert on submit with linq. Pin
nishkarsh_k3-Jan-08 0:33
nishkarsh_k3-Jan-08 0:33 
GeneralSaving Webpage Contents into Excel Pin
viji]3-Jan-08 0:11
viji]3-Jan-08 0:11 
GeneralRe: Saving Webpage Contents into Excel Pin
Dave Kreskowiak3-Jan-08 4:44
mveDave Kreskowiak3-Jan-08 4:44 
GeneralTransparent back color property of label Pin
nishkarsh_k2-Jan-08 20:52
nishkarsh_k2-Jan-08 20:52 
GeneralRe: Transparent back color property of label Pin
Dave Kreskowiak3-Jan-08 1:58
mveDave Kreskowiak3-Jan-08 1:58 
Generalsec urity issue Pin
Tauseef A2-Jan-08 20:40
Tauseef A2-Jan-08 20:40 
GeneralRe: sec urity issue Pin
Dave Kreskowiak3-Jan-08 4:50
mveDave Kreskowiak3-Jan-08 4:50 
QuestionRe: sec urity issue Pin
Tauseef A3-Jan-08 16:17
Tauseef A3-Jan-08 16:17 
GeneralRe: sec urity issue Pin
Dave Kreskowiak4-Jan-08 1:40
mveDave Kreskowiak4-Jan-08 1:40 
GeneralCom callable Wrapper Class Pin
ramyasangeet2-Jan-08 20:37
ramyasangeet2-Jan-08 20:37 
GeneralRe: Com callable Wrapper Class Pin
Dave Kreskowiak3-Jan-08 1:47
mveDave Kreskowiak3-Jan-08 1:47 
GeneralWriting data from dataset to XML file [modified] Pin
Usharva2-Jan-08 20:14
Usharva2-Jan-08 20:14 
GeneralRe: Writing data from dataset to XML file Pin
Michael Sync2-Jan-08 20:26
Michael Sync2-Jan-08 20:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.