Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - How do I insert a node into a xml document? [Thread Next] Re: How do I insert a node into a xml document?To: NULL Date: 11/3/2004 12:22:00 PM This VB code may be an hint for you.
x.loadxml "<a><b/></a>"
set b=x.selectsinglenode("/a/b")
set c=x.createelement("c")
b.parentNode.insertBefore c, b
msgbox x.xml
"Dwight" <Dwight@d...> wrote in message
news:9B22A39D-9E72-47A3-ADD6-5DEBAFFA9673@m......
> Hi
>
> I have the following simple XML
>
> <Books>
> <Book>
> </Book>
> </Books>
>
> How do I insert a <BookTitle> node inside the book element using the DOM
> object in VB6?
>
> I've tried using the InsertBefore method but this does not work.
>
> Does anyone have any ideas or thoughts?
>
> TIA
> Dwight
>
>
> Can
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
