Re: Help with ampersand in xml

2012-10-19 Thread Dave Cragg
On 18 Oct 2012, at 16:35, Chris Sheffield cmsheffi...@me.com wrote: For all you xml experts out there. Hoping someone has the answer for this... I need to use an ampersand character () in xml. It's in a company name like Levi Strauss Co. Everything I can find on the topic says to use the

Re: Help with ampersand in xml

2012-10-19 Thread Andre Garzia
On Thu, Oct 18, 2012 at 9:54 PM, Mark Wieder mwie...@ahsoftware.net wrote: Andre- Thursday, October 18, 2012, 2:31:25 PM, you wrote: TRICK #1: I replace every ampersand with something like: replace with #AMPERSAND# in tXML LOL. I use _AMPERSAND_. I also replace comma with

Re: Help with ampersand in xml

2012-10-19 Thread Andre Garzia
On Thu, Oct 18, 2012 at 9:54 PM, Mark Wieder mwie...@ahsoftware.net wrote: Andre- Thursday, October 18, 2012, 2:31:25 PM, you wrote: TRICK #1: I replace every ampersand with something like: replace with #AMPERSAND# in tXML LOL. I use _AMPERSAND_. I also replace comma with

Re: Help with ampersand in xml

2012-10-19 Thread Mark Wieder
Andre- Friday, October 19, 2012, 7:30:51 AM, you wrote: Our XML parser is pretty forgiving, it appears that it allows amp;... who knows what more it may allow :-D Ah, never mind. I thought the issue was with ampersands and commas and other things in xml tags, not in the data elements. Yes,

Help with ampersand in xml

2012-10-18 Thread Chris Sheffield
For all you xml experts out there. Hoping someone has the answer for this... I need to use an ampersand character () in xml. It's in a company name like Levi Strauss Co. Everything I can find on the topic says to use the entity reference amp;, but this doesn't seem to be working. I just end up

Re: Help with ampersand in xml

2012-10-18 Thread stephen barncard
did you try its number ?? #38; http://www.w3schools.com/html/html_entities.asp On Thu, Oct 18, 2012 at 8:35 AM, Chris Sheffield cmsheffi...@me.com wrote: For all you xml experts out there. Hoping someone has the answer for this... I need to use an ampersand character () in xml. It's

Re: Help with ampersand in xml

2012-10-18 Thread Chris Sheffield
Well, how about that? I think that worked. I thought I had tried that earlier, but apparently not. Thanks, Chris On Oct 18, 2012, at 11:51 AM, stephen barncard stephenrevoluti...@barncard.com wrote: did you try its number ?? #38; http://www.w3schools.com/html/html_entities.asp

Re: Help with ampersand in xml

2012-10-18 Thread Andre Garzia
Chris, In theory you can't have ampersands in XML because it assumes it is an entity. You can try using amp; but it shouldn't work because XML is not HTML. I will tell you my dirty trick for dealing with ampersands. Its a very boring trick. TRICK #1: I replace every ampersand with something

Re: Help with ampersand in xml

2012-10-18 Thread Mark Wieder
Andre- Thursday, October 18, 2012, 2:31:25 PM, you wrote: TRICK #1: I replace every ampersand with something like: replace with #AMPERSAND# in tXML LOL. I use _AMPERSAND_. I also replace comma with _COMMA_ because commas aren't allowed. XML doesn't allow numeric keys, either, so I