Jump to content

matfish

Members
  • Posts

    242
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    UK

matfish's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Using the code from my previous post, I've got that working. But another form of XML I'm dealing with is: <xml> <item Mon="9:00am" /> <item Tue="9:30am" /> <item Wed="10:00am" /> </xml> I'm trying to get the node/variable name of "Mon/Tue/Wed" into an array alongside it's time in a loop? Any ideas? Thanks for your help.
  2. I think I'm getting my head around it now. I'm currently using: $xmlstr = <<<XML <xml> <item id="1" body="content 1" /> <item id="2" body="content 2" /> </xml> XML; $xml = new SimpleXMLElement($xmlstr); foreach ($xml->item as $data) { echo $data['id'].": ".$data['body']."<br />"; } Many thanks
  3. Hi, thanks, I did have a look at that but does it support the layout I'm having trouble with? I keep getting string errors. Many thanks
  4. Hi there, The usual way I use XML is using: <xml> <item> <id>1</id> <body>content 1</body> </item> <item> <id>2</id> <body>content 2</body> </item> </xml> However I'm having to pull the content from a CMS which is out of my control which uses: <xml> <item id="1" body="content 1" /> <item id="2" body="content 2" /> </xml> Is there a way to parse and loop through this type of XML formatting easily and put into a PHP array? Thanks in advance!
  5. Hi there, I have Russian content as an Excel spreadsheet to import into a database. I have converted it to .CSV but it does not recognise the Russian characters and replaces with question marks. Is there another way to import the spreadsheets? Or a way for the CSV to understand the language? Many thanks
  6. Hi there, I need to produce an XML file which is outputting French characters, which then feeds a Flash application. However, I can't seem to output uppercase French special characters (lowercase seems fine) I'm using the UTF-8 header. Any suggestions? Many thanks
×
×
  • 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.