ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Create XML 'baseName' or 'nodeName' (https://www.excelbanter.com/excel-programming/418216-create-xml-basename-nodename.html)

k1sr

Create XML 'baseName' or 'nodeName'
 
Hi,

Trying to use VBA to create an XML file... I've got half of it figured,
however I don't know how to create a node...

I've tried:

docXML.ChildNodes(0).baseName = "name"

but it won't work because 'baseName' (or nodeName) is a read only element...
Any ideas...???

Also, can you tell me how to refer to nodes by their names, rather than
ChildNodes(0, 1, 2, 3, etc.) - I can't figure out '.attribute' (which should
be it...??)

Thanks...!


All times are GMT +1. The time now is 01:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com