Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

enclose attributes' values in single quotes in xml 2

Status
Not open for further replies.

upplepop

IS-IT--Management
Jun 1, 2002
173
US
I have been using this command to enclose attributes' values in double quotes in an xml document:
Code:
xmldocument.QuoteChar = """"c

But I'm unable to modify this to switch to single quotes. I have tried a few things such as:

xmldocument.QuoteChar = "''"c
(error: Character constant must contain exactly one character)

or

xmldocument.QuoteChar(')
(error: Expression expected)

But neither work. Any suggestion?
 
= "''"c
If I look at your single quotes you have 2. Therefore the error is correct.

It should be = "'"

The only reason you need 2 double qoutes is that one escapes the other as they are "Wraped" in double quotes. Because you are putting the single qoute in a double qoute you dont' need 2.

Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top