Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: VBA DOMDocument60 Instructions/Examples

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 7/23/2009 12:07:00 PM
MarkTheAccountant wrote:

> I'm trying within a Access 2007 module to load XML, edit it (add/remove 
> amend the text in nodes).  I'm struggling as I can't find any good examples 
> (I seem to see lots of Javascript, some VB.Net and earler versions of the 
> MSXML).

Does the MSXML SDK not help?
   http://msdn.microsoft.com/en-us/library/ms763742(VS.85).aspx

It might not have all examples tailored to MSXML 6 but the APIs have not 
changed much since MSXML 3 so anywhere where you see DOMDocument30 or 
DOMDocument40 or DOMDocument50 you can simply replace that with 
DOMDocument60.

There are a few cases where MSXML 6 is more restrictive by default than 
earlier versions, see 
http://msdn.microsoft.com/en-us/library/ms753751(VS.85).aspx for 
details, so for instance to allow parsing of XML documents with a DTD 
you need to set a second level property ProhibitDTD 
(http://msdn.microsoft.com/en-us/library/ms762632(VS.85).aspx) to false 
first.

But adding and removing text inside of elements certainly is not 
different in MSXML 3, 4, 5, 6.


-- 

	Martin Honnen --- MVP XML
	http://msmvps.com/blogs/martin_honnen/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent