none
Format XML RRS feed

  • Question

  • My vba code creates an xml like the following:

    <?xml version="1.0"?>
    <School>
    <State>California</State>
    <City>LA</City>
    </School>

    How do I format it to be like:

    <?xml version="1.0"?>
     <School>
                 <State>California</State>
                 <City>LA</City>
     </School>

    Thursday, October 16, 2014 5:11 PM

Answers

  • How does your VBA code create an xml? What's your code?

    if you want to indent code you could use a built-in constant such as vbTab
    • Marked as answer by Shayaan Friday, October 17, 2014 2:15 PM
    Friday, October 17, 2014 9:16 AM