Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 26th, 2008, 05:15 PM
Chris Browne
Guest
 
Posts: n/a
Default escaping colons in strings

Hi all,

I am trying to write to an XML file, but it will not allow me to use a
colon. Is there some way to be able to write the colon to the XML?

PHP code -
$point = "something"
$sitemap->addChild("new:point", $point);

XML it creates -
<point>something</point>

(misses the the 'new' all together)


Any ideas would be great,


Kind regards,

Chris
 

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles