|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How do I edit an existing xml file node in VB6?
I'm currently using DomDocument and IXMLDOMNode in VB6.
For example: <profiles> <profile> <name>bob</name> <number>123</number> </profile> <profile> <name>Joe</name> <number>456</number> </profile> </profiles> I'd like to load this file and update the "number" node for name="Joe" and leave everything else the same... Result would be: <profiles> <profile> <name>bob</name> <number>123</number> </profile> <profile> <name>Joe</name> <number>789</number> </profile> </profiles> Thanks a ton! |
|
#2
|
|||
|
|||
|
U can use filesystem object to open this xml file and find the name value which is joe,and replace its number value....Or u will import this xml file to database as a table,and update the recordset which has "joe" name value,and export this table to xml.
|
|
#3
|
||||
|
||||
|
there is also a library called MSXML1-3.0 that you can reference ... Good to see you again CP
__________________
Fisherman "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." - A.Einstein |
|
#4
|
|||
|
|||
|
I'm glad to see u again!My friend,Fisherman!
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > How do I edit an existing xml file node in VB6? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|