Click here to Skip to main content
15,917,565 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionXml object and weird "?" characters Pin
tobycow631-Aug-06 2:46
tobycow631-Aug-06 2:46 
AnswerRe: Xml object and weird "?" characters Pin
Michael Dunn6-Sep-06 19:27
sitebuilderMichael Dunn6-Sep-06 19:27 
QuestionAllowing any element in a complex element Pin
impeham31-Aug-06 2:24
impeham31-Aug-06 2:24 
AnswerRe: Allowing any element in a complex element Pin
led mike1-Sep-06 5:13
led mike1-Sep-06 5:13 
QuestionRe: Allowing any element in a complex element Pin
impeham2-Sep-06 22:14
impeham2-Sep-06 22:14 
QuestionSmalltalk to XML conversion Pin
Tanmay S. Limaye31-Aug-06 0:29
Tanmay S. Limaye31-Aug-06 0:29 
QuestionXSL in Jscript, and passing Jscript vars in XSL Pin
wallyson29-Aug-06 8:57
wallyson29-Aug-06 8:57 
QuestionEscaping quotes in XML Pin
richiemac29-Aug-06 5:26
richiemac29-Aug-06 5:26 
Hi
Not sure if this a question for XML, SQL or .Net forum but here goes.

I have an XML file with a number of elements, one of which is,
<SQLQuery>select * from trainarrivals where ActiveFlag = 1 and DueTime between ('" + DateTime.Now.ToShortTimeString() + "') and ('" + (DateTime.Now.AddHours(1).ToShortTimeString()) + "')</SQLQuery>


I am using a C# application to read the file and connect to a MySql database. When I get this element the environment adds escape characters to the string so it looks like,

<SQLQuery>select * from trainarrivals where ActiveFlag = 1 and DueTime between ('\" + DateTime.Now.ToShortTimeString() + \"') and ('\" + (DateTime.Now.AddHours(1).ToShortTimeString()) + \"')</SQLQuery>


This in turn causes an exception in my code being thrown.

My question is, how can I write the xml file so the ( " ) is treated as such or change the string when it is read?

Thanks in advance and appologies if this is the wrong place!
AnswerRe: Escaping quotes in XML Pin
led mike29-Aug-06 6:18
led mike29-Aug-06 6:18 
GeneralRe: Escaping quotes in XML Pin
richiemac29-Aug-06 7:08
richiemac29-Aug-06 7:08 
GeneralRe: Escaping quotes in XML Pin
led mike29-Aug-06 7:28
led mike29-Aug-06 7:28 
GeneralRe: Escaping quotes in XML Pin
richiemac29-Aug-06 22:46
richiemac29-Aug-06 22:46 
GeneralRe: Escaping quotes in XML Pin
led mike30-Aug-06 5:01
led mike30-Aug-06 5:01 
GeneralRe: Escaping quotes in XML Pin
richiemac30-Aug-06 21:35
richiemac30-Aug-06 21:35 
Questionxsl simple question Pin
Brent Lamborn28-Aug-06 9:46
Brent Lamborn28-Aug-06 9:46 
AnswerRe: xsl simple question Pin
Brent Lamborn28-Aug-06 10:04
Brent Lamborn28-Aug-06 10:04 
AnswerRe: xsl simple question Pin
Elina Blank28-Aug-06 10:06
sitebuilderElina Blank28-Aug-06 10:06 
GeneralRe: xsl simple question Pin
Brent Lamborn28-Aug-06 10:07
Brent Lamborn28-Aug-06 10:07 
QuestionMultiple root elements [modified] Pin
Tomi8728-Aug-06 9:21
Tomi8728-Aug-06 9:21 
AnswerRe: Multiple root elements Pin
led mike29-Aug-06 6:19
led mike29-Aug-06 6:19 
GeneralRe: Multiple root elements Pin
Tomi8729-Aug-06 6:40
Tomi8729-Aug-06 6:40 
GeneralRe: Multiple root elements Pin
led mike29-Aug-06 7:35
led mike29-Aug-06 7:35 
Questionxml-excel Pin
fmardani25-Aug-06 3:32
fmardani25-Aug-06 3:32 
QuestionSorting nodes by a child node Pin
Malcolm Smart25-Aug-06 1:05
Malcolm Smart25-Aug-06 1:05 
QuestionHow do i control the format of a date output by XSL? Pin
Red_Wizard_Shot_The_Food24-Aug-06 0:48
Red_Wizard_Shot_The_Food24-Aug-06 0:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.