Connecting Tech Pros Worldwide Help | Site Map

escaping colons in strings

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 26th, 2008, 04: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 Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

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 220,989 network members.