XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 19th, 2002, 05:47 PM
coredumped coredumped is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Posts: 149 coredumped User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 49 m 47 sec
Reputation Power: 8
Using & within an XML document

I've painfully discovered that using an '&' sign within the quoted text of a tag value doesn't jive well with the XML parser.

That is...

<MYTAG Value1="Billy & His Dog"></MYTAG>

... isn't accepted and gives a bunch of errors when trying to read directly into the browser, and won't even load the document when trying to use DOM in PHP.

It gives me the error that whitespace is not accepted after the '&'.

Any ideas how I *can* use this character in this context?

Thanx,

- coredumped.

Reply With Quote
  #2  
Old June 21st, 2002, 06:03 AM
lveale lveale is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Location: Sydney & Dublin
Posts: 1 lveale User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to lveale
Did you try &amp;

Reply With Quote
  #3  
Old June 18th, 2004, 08:22 PM
waffe waffe is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 85 waffe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 56 m 13 sec
Reputation Power: 6
I have the same problem Coredumped. Did you ever find a solution to this problem?

lveale what do you mean by your post?

Thanks,

waffe

Reply With Quote
  #4  
Old June 22nd, 2004, 10:03 AM
Teflon's Avatar
Teflon Teflon is offline
Teflon The Black
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Woodbridge VA
Posts: 246 Teflon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 28 m 14 sec
Reputation Power: 5
Send a message via AIM to Teflon
if you type out & instead of & it will function as you want it to.
I believe that is what iveale meant.

-Teflon
__________________
Teflon - The Black <desc>Mark This Up</desc>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Using & within an XML document


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT