Jump to content

spongebobusa

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

spongebobusa's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I swear I tried that!  ;D But it now works!  Thanks for the help. [quote author=448191 link=topic=105448.msg421288#msg421288 date=1156406815] That won't do it. This will: [code] <?php $licencenumber = 123456789; $xmlDoc =<<<XML <?xml version="1.0"?> <AccessRequest xml:lang="en-US">   <AccessLicenseNumber>$licencenumber</AccessLicenseNumber> </AccessRequest> XML; ?>[/code] Heredoc (<<) will expand vars as if you were using double quotes. Alternitively, you  could look up XML entities. [/quote]
  2. I don't understand.  what should I be using instead?
  3. I currently have this: [code]$xmlDoc =<<<XML <?xml version="1.0"?> <AccessRequest xml:lang="en-US">   <AccessLicenseNumber>123456789</AccessLicenseNumber> </AccessRequest> XML;[/code] How can I substitute use a variable inside of a <<<XML XML.  For instance, I want to use $number rather than 123456789.
  4. I am not sure why I am getting this error.  DOMElement is a sublcass of DomNode. Fatal error: Call to undefined method DOMElement::set_content() Here is my code snippet. [code]$var = new DomElement("name"); $var->set_content("some_content");[/code] Thanks in advance.  I am using PHP 5.1.2 and PHP 5.1.4
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.