1

We need to generate an XML using Access, is there any Visual Basic objects or functions that can help with the task ?

1
  • What exactly do you need? An xml file or just a string? What's the purpose of generating xml? Commented Mar 30, 2010 at 9:55

3 Answers 3

1

Have you tried Application.ExportXML? If you type "exportxml" into the help in the VBE, it will get you ExportXML method as the first choice.

Sign up to request clarification or add additional context in comments.

Comments

1

Try using XmlDocument type.

http://www.functionx.com/vbnet/xml/Lesson02.htm

There's also Chilkat XML ActiveX.

https://www.chilkatsoft.com/chilkatxml.asp

https://www.chilkatsoft.com/refdoc/xChilkatXmlRef.html

1 Comment

@HackSlash Thanks, updated to original documentation
0

I found it much easier to build my own functions. You can find the 3 functions here.
The basic idea is to build a recorset (query), loop through it to build your string. See the comments. The blog is in French but the code comments are in English.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.