View Full Version : XML formatting
gbrown
04-20-2007, 12:41 PM
I'm having to convert some stuff to an XML format. I know zip about XML...but I have a file that I'm using as a model.
I've got a line like this:
<respcondition title="0 0.6 inches" >
actually, it's 0.6"
When my translator kicks out:
<respcondition title="0 0.6 "" >
the system chokes. How do I tell it to stick in a literal quote?
Thanks...
Gary
The quote must be escaped like so:
\"
A list of characters that need to be escaped are found in the Strings section here:
http://www.indigorose.com/webhelp/ams60/Scripting_Guide/Variables.htm
gbrown
04-20-2007, 01:37 PM
Odd... the XML displayer chokes on this:
<respcondition title="0 .12\" to .20\" " >
---------------------------------^
Any suggestions?
GcB
Dermot
04-20-2007, 01:53 PM
I have XML files that have things like "Item="4 x 8 x 7/16" and Item="Anderson egress basement windowCW235 RO 3' 5 3/8" H x 4' 9" W" and they don't cause any problems. I haven't used these file with AMS.
What are you using to display the XML file?
gbrown
04-20-2007, 01:57 PM
I'm just loading it into FireFox.
Dermot
04-20-2007, 01:59 PM
Have you tried IE? That's what I use and it doesn't complain about the embedded quotes.
gbrown
04-20-2007, 02:07 PM
No luck... gets ill in IE, too.
gbrown
04-20-2007, 06:18 PM
I guess it really doesn't matter. I sent a sample file to The Customer and the program it's supposed to end up in ate it without a burp...so I guess I won't worry about it!
GcB
TJ_Tigger
04-21-2007, 08:22 AM
Hey Gary,
What about using " instead?
<respcondition title="0 .12" to .20" " >
Since you are viewing it in a browser it might work.
Tigg
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.