How To Locate and Replace Special Characters in an XML Document with Visual Basic (251354)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- Microsoft XML 3.0
- Microsoft XML 4.0
This article was previously published under Q251354 SUMMARY XML predefines five entity references for special
characters that would otherwise be interpreted as part of the markup language.
These five are listed as follows:
Entity Reference Character
& &
<: <
> >
" "
' '
When you create an XML Document, you must input these special
characters appropriately to insure proper parsing, interpretation, and data
display. When you create an XML Document from Visual Basic, one way to search
for these special characters and replace them with the proper entity reference
is to use the Replace function. NOTE: Microsoft Visual Basic 6.0 and later products, and Microsoft
Office 98 and later products come with a Replace function that is built-in. REFERENCES For additional information, click the following article number
to view the article in the Microsoft Knowledge Base: 308060
How To Locate and Replace Special Characters in an XML File with Visual Basic .NET
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbDatabase kbhowto KB251354 |
---|
|