Dashboard > Public Content > ... > ExcelVBA > Create Some XML
  Public Content Log In   View a printable version of the current page.  
  Create Some XML
Added by James Richardson, last edited by James Richardson on Jun 28, 2006
Labels: 
(None)

Sub openTag(ByRef xml As String, tag As String) 
    xml = xml & "<" & tag & ">" 
End Sub 
 
Sub closeTag(ByRef xml As String, tag As String) 
    xml = xml & "</" & tag & ">" 
End Sub 
 
Sub addTag(ByRef xml As String, tag As String, content As String) 
    openTag xml, tag 
    xml = xml & content 
    closeTag xml, tag 
End Sub 
 
Sub addElem(ByRef xml As String, elem As String) 
    xml = xml & elem 
End Sub
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.1 Build:#806 May 06, 2007) - Bug/feature request - Contact Administrators