SparkoUK Posted April 16, 2015 Share Posted April 16, 2015 I am trying to write an attribute value in an xml file that needs single quotes modified to "e;. I am using _XMLDomWrapper.au3 currently via _XMLSetAttrib($xmlClientIdParamValue, "value", "'" & $ClientIDx & "'") but this does not encode the single quote. If I true to make it _XMLSetAttrib($xmlClientIdParamValue, "value", ""e;" & $ClientIDx & ""e;") then the & gets encoded to & Anyone please help me to get the single quote encoded in there? Link to comment Share on other sites More sharing options...
Solution Tripredacus Posted April 16, 2015 Solution Share Posted April 16, 2015 (edited) You can use Chr(39)Here is a list of other codes, use the one in the Decimal column.http://www.ascii.cl/htmlcodes.htm Edited April 16, 2015 by Tripredacus Twitter | MSFN | VGCollect Link to comment Share on other sites More sharing options...
MikahS Posted April 16, 2015 Share Posted April 16, 2015 (edited) If your just replacing a string why not use: StringReplace Edited April 16, 2015 by MikahS Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ Link to comment Share on other sites More sharing options...
SparkoUK Posted April 16, 2015 Author Share Posted April 16, 2015 OOps meant double quote essentially " Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now