I want to write rows of data from Excel to an XML file. However, I need to validate the data before I commit to file. I know that WriteLine()
has its own end of line but I need to add it in the string. So I want to do something like this:
strXML = "<BOM>" & {??} _
& "<BOM_NBR>" & p_typBomValues.strParentPNbr & "</BOM_NBR>" & {??} _
& "<DESC>" & p_typBomValues.strParentDesc & "</DESC>" & {??} _
& "<ECO_NBR>" & p_typBomValues.strEcoNbr & "</ECO_NBR>" & {??} _
& "<REV>" & p_typBomValues.strRevision & "</REV>"" & {??}
.WriteLine(strXML)
...not this:
.WriteLine ("<BOM>")
.WriteLine ("<BOM_NBR>" & p_typBomValues.strParentPNbr & "</BOM_NBR>")
.WriteLine ("<DESC>" & p_typBomValues.strParentDesc & "</DESC>")
.WriteLine ("<ECO_NBR>" & p_typBomValues.strEcoNbr & "</ECO_NBR>")
.WriteLine ("<REV>" & p_typBomValues.strRevision & "</REV>")
...where {??} is the end of line character. I've seen Chr(10) & Chr(13)
mentioned as an option but nothing definitive.