Results 1 to 5 of 5

Thread: Using XML in PHP

  1. Using XML in PHP

    I'm working on a project that requires me to place XML tags around data generated dynamically in PHP (no external documents, btw). I keep getting parse errors when I declare what version of XML I am using:
    specifically <?xml version='1.0'?> no errors occurr when I do this: <?xml ?>, but this is incorrect.

    Does anyone know about running XML in PHP?

  2. <?xml version=\"1.0\"?>

  3. still no luck. Getting a parse error. :Parse error: parse error, unexpected T_STRING

  4. Post the code. For example:

    Code:
    if( $xls = fopen( $filename, "a" ) ) {
    	$header = "<?xml version=\"1.0\"?>
    <Workbook xmlns=\"urn:schemas-microsoft-com:office:spreadsheet\" xmlns:o=\"urn:schemas-microsoft-com:office:office\" xmlns:x=\"urn:schemas-microsoft-com:office:excel\" xmlns:html=\"http://www.w3.org/TR/REC-html40\" xmlns:ss=\"urn:schemas-microsoft-com:office:spreadsheet\">
    	<DocumentProperties xmlns=\"urn:schemas-microsoft-com:office:office\">
    		<Author>ARS Parts Order Server</Author>
    		<LastAuthor>ARS Parts Order Server</LastAuthor>
    	</DocumentProperties>
    	<OfficeDocumentSettings xmlns=\"urn:schemas-microsoft-com:office:office\">
    		<AllowPNG/>
    	</OfficeDocumentSettings>
    Etc.

  5. Yeah, post code - especially whatever line PHP sez there's an error on

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Games.com logo