Re: [PHP] XML to Array

2013-03-12 Thread Bastien
Bastien Koert On 2013-03-11, at 10:50 PM, Karl DeSaulniers k...@designdrumm.com wrote: On Mar 11, 2013, at 8:22 AM, Bastien Koert wrote: On Sun, Mar 10, 2013 at 6:28 PM, Karl DeSaulniers k...@designdrumm.com wrote: On Mar 10, 2013, at 6:03 AM, richard gray wrote: On 10/03/2013

Re: [PHP] XML to Array

2013-03-11 Thread Bastien Koert
On Sun, Mar 10, 2013 at 6:28 PM, Karl DeSaulniers k...@designdrumm.com wrote: On Mar 10, 2013, at 6:03 AM, richard gray wrote: On 10/03/2013 11:47, Karl DeSaulniers wrote: Hi Guys, I am hoping someone can guide me or help me fix this issue. I have been lost in the code for some time now.

Re: [PHP] XML to Array

2013-03-11 Thread Karl DeSaulniers
On Mar 11, 2013, at 8:22 AM, Bastien Koert wrote: On Sun, Mar 10, 2013 at 6:28 PM, Karl DeSaulniers k...@designdrumm.com wrote: On Mar 10, 2013, at 6:03 AM, richard gray wrote: On 10/03/2013 11:47, Karl DeSaulniers wrote: Hi Guys, I am hoping someone can guide me or help me fix this

Re: [PHP] XML to Array

2013-03-11 Thread Karl DeSaulniers
On Mar 11, 2013, at 8:22 AM, Bastien Koert wrote: On Sun, Mar 10, 2013 at 6:28 PM, Karl DeSaulniers k...@designdrumm.com wrote: On Mar 10, 2013, at 6:03 AM, richard gray wrote: On 10/03/2013 11:47, Karl DeSaulniers wrote: Hi Guys, I am hoping someone can guide me or help me fix this

Re: [PHP] XML to Array

2013-03-10 Thread richard gray
On 10/03/2013 11:47, Karl DeSaulniers wrote: Hi Guys, I am hoping someone can guide me or help me fix this issue. I have been lost in the code for some time now. I am trying to get the attributes of an xml node. I have this code: [snip] this may help -

Re: [PHP] XML to Array

2013-03-10 Thread Karl DeSaulniers
On Mar 10, 2013, at 6:03 AM, richard gray wrote: On 10/03/2013 11:47, Karl DeSaulniers wrote: Hi Guys, I am hoping someone can guide me or help me fix this issue. I have been lost in the code for some time now. I am trying to get the attributes of an xml node. I have this code: [snip] this

Re: [PHP] XML/PHP web service

2012-08-08 Thread Ashley Sheridan
Phillip Baker phil...@freewolf.net wrote: Greetings all, I am looking for some options here. I am in need of creating a service on our web server that will always be available and automated. It will accept an XML file. I will be checking to see if the XML file is valid and then passing it on

Re: [PHP] XML/PHP web service

2012-08-08 Thread Phillip Baker
I was wondering how that would work and if it might be that simple. How would I inform the client to hit the page (script)? Blessed Be Phillip In the Jim Crow South, for example, government failed and indeed refused to protect blacks from extra-legal violence. Given our history, it's stunning

Re: [PHP] XML/PHP web service

2012-08-08 Thread Robert Cummings
Hi Philip, Tell them they can POST submissions to: https://www.acme.com/xml-submission Then tell them what fields are supported. Presumably you will support the following POST fields as a minimum (as if they were on a form): username password xml Your handler should also

Re: [PHP] XML enabled but not working

2011-09-16 Thread Richard Quadling
On 15 September 2011 21:20, Matthew Pounsett m...@conundrum.com wrote: Anyone have any thoughts on what to look at? php -m look for XML php --rf xml_parser_create look for Function [ internal:xml function xml_parser_create ] { - Parameters [1] { Parameter #0 [ optional $encoding ] }

Re: [PHP] XML enabled but not working

2011-09-16 Thread Matthew Pounsett
On 2011/09/16, at 10:27, Richard Quadling wrote: On 15 September 2011 21:20, Matthew Pounsett m...@conundrum.com wrote: Anyone have any thoughts on what to look at? php -m php --rf xml_parser_create Thanks. This seems to reinforce that there's something wrong, but I don't feel like I

Re: [PHP] XML enabled but not working

2011-09-16 Thread Richard Quadling
On 16 September 2011 23:18, Matthew Pounsett m...@conundrum.com wrote: On 2011/09/16, at 10:27, Richard Quadling wrote: On 15 September 2011 21:20, Matthew Pounsett m...@conundrum.com wrote: Anyone have any thoughts on what to look at? php -m php --rf xml_parser_create Thanks.  This

Re: [PHP] XML enabled but not working

2011-09-15 Thread tamouse mailing lists
On Thu, Sep 15, 2011 at 3:20 PM, Matthew Pounsett m...@conundrum.com wrote: echo ? print xml_parser_create(''); ? | php Not anything to do with the problem, but you can just write: php -r print xml_parser_create(''); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] XML array

2011-07-05 Thread Stuart Dallas
On Tue, Jul 5, 2011 at 4:36 PM, Kanishka kanishkani...@gmail.com wrote: hi this is my first post on php general mailing list, i want to read a xml file to retrieve data. i tried by using DOM and simple xml but i couldn't. the xml file looks like this.. *note head titlethe the

Re: [PHP] XML array

2011-07-05 Thread Tamara Temple
On Jul 5, 2011, at 10:47 AM, Stuart Dallas wrote: $arr[] = array('name' = (string)$book-name, 'author' = (string)$book-author); } Interesting -- is the casting to string type necessary there? I haven't done that before, and it seems to have worked ok... -- PHP General Mailing List

Re: [PHP] XML array

2011-07-05 Thread Stuart Dallas
On Tue, Jul 5, 2011 at 6:43 PM, Tamara Temple tamouse.li...@gmail.comwrote: On Jul 5, 2011, at 10:47 AM, Stuart Dallas wrote: $arr[] = array('name' = (string)$book-name, 'author' = (string)$book-author); } Interesting -- is the casting to string type necessary there? I haven't done

Re: [PHP] XML array

2011-07-05 Thread Tamara Temple
On Jul 5, 2011, at 12:48 PM, Stuart Dallas wrote: On Tue, Jul 5, 2011 at 6:43 PM, Tamara Temple tamouse.li...@gmail.com wrote: On Jul 5, 2011, at 10:47 AM, Stuart Dallas wrote: $arr[] = array('name' = (string)$book-name, 'author' = (string)$book-author); } Interesting -- is the casting

Re: [PHP] XML Smart Home

2011-04-17 Thread Daniel Brown
On Sun, Apr 17, 2011 at 11:34, Negin Nickparsa nickpa...@gmail.com wrote: i coded a smart home it has two jframes in java netbeans it works correctly when i run the server and then when i run client the devices such as radio,fan,... i turn them on/off but i want to store the changes when i

Re: [PHP] XML Smart Home

2011-04-17 Thread Negin Nickparsa
php coders know about XML maybe u don't know but someone will reply me u'll see

Re: [PHP] XML Smart Home

2011-04-17 Thread Daniel Brown
On Sun, Apr 17, 2011 at 11:38, Negin Nickparsa nickpa...@gmail.com wrote: php coders know about XML maybe u don't know but someone will reply me u'll see What I see is someone who doesn't know how to help himself, who thinks he's either smart or funny in his reply, and who has failed

Re: [PHP] XML Smart Home

2011-04-17 Thread Negin Nickparsa
i didn't want to be smart or funny cause i'm not i just told my Idea and i didn't want to bother list or Daniel pardon me Daniel,for my bad behave if u think that was bad ok i'll go

Re: [PHP] XML Smart Home

2011-04-17 Thread tedd
At 8:21 PM +0430 4/17/11, Negin Nickparsa wrote: i didn't want to be smart or funny cause i'm not i just told my Idea and i didn't want to bother list or Daniel pardon me Daniel,for my bad behave if u think that was bad ok i'll go That's probably a good thing for all. On your next Mailing

Re: [PHP] Re: Config files: what is best? (was: Re: [PHP] XML... Useful or another layer of complexity?)

2011-04-04 Thread Richard Quadling
On 3 April 2011 21:38, Peter Lind peter.e.l...@gmail.com wrote: On 3 April 2011 22:35, Andre Polykanine an...@oire.org wrote: Hello Peter, Thanks a lot! And is there a way to set (write) custom values in files other than php.ini? Sorry, didn't find such a function. I haven't come across

Re: [PHP] XML... Useful or another layer of complexity?

2011-04-03 Thread Ashley Sheridan
Jason Pruim li...@pruimphotography.com wrote: So the subject says it all... And yes I know this isn't related to PHP but it's the weekend and I trust the opinions on this list more then any other list I have seen. I've been doing alot of reading on XML and honestly it looks pretty cool... BUT the

Re: [PHP] XML... Useful or another layer of complexity?

2011-04-03 Thread Per Jessen
Jason Pruim wrote: So the subject says it all... And yes I know this isn't related to PHP but it's the weekend and I trust the opinions on this list more then any other list I have seen. I've been doing alot of reading on XML and honestly it looks pretty cool... BUT the question is... Is it

Re: [PHP] XML... Useful or another layer of complexity?

2011-04-03 Thread Peter Lind
Like every other technology, XML needs to have a use before it becomes a useful tool. Just using XML because it's available quickly leads to headaches, as it isn't the best tool for all scenarios (config files written in XML for instance). That said, XML is awesome for a lot of things ... however,

[PHP] Config files: what is best? (was: Re: [PHP] XML... Useful or another layer of complexity?)

2011-04-03 Thread Andre Polykanine
Hello Peter, Just because you mentioned config files. What would you suggest me as better format for them? Database is not available yet since I need to make a config file before creating a database. -- With best regards from Ukraine, Andre Skype: Francophile My blog:

[PHP] Re: Config files: what is best? (was: Re: [PHP] XML... Useful or another layer of complexity?)

2011-04-03 Thread Peter Lind
On 3 April 2011 21:41, Andre Polykanine an...@oire.org wrote: Hello Peter, Just because you mentioned config files. What  would  you suggest me as better format for them? Database is not available  yet  since  I  need to make a config file before creating a database. For config files I

Re: [PHP] XML... Useful or another layer of complexity?

2011-04-03 Thread Camilo Sperberg
El 03-04-11 14:41, Jason Pruim escribió: So the subject says it all... And yes I know this isn't related to PHP but it's the weekend and I trust the opinions on this list more then any other list I have seen. I've been doing alot of reading on XML and honestly it looks pretty cool... BUT the

Re: [PHP] XML... Useful or another layer of complexity?

2011-04-03 Thread Jason Pruim
On Apr 3, 2011, at 3:31 PM, mrfroasty wrote: On 04/03/2011 08:41 PM, Jason Pruim wrote: So the subject says it all... And yes I know this isn't related to PHP but it's the weekend and I trust the opinions on this list more then any other list I have seen. I've been doing alot of reading

Re: [PHP] Re: Config files: what is best? (was: Re: [PHP] XML... Useful or another layer of complexity?)

2011-04-03 Thread Peter Lind
On 3 April 2011 22:35, Andre Polykanine an...@oire.org wrote: Hello Peter, Thanks a lot! And is there a way to set (write) custom values in files other than php.ini? Sorry, didn't find such a function. I haven't come across any, but then again, I haven't had the need so never looked much ...

Re: [PHP] XML with PHP

2010-08-26 Thread Michael Shadle
On Thu, Aug 26, 2010 at 2:54 AM, u...@domain.invalid wrote: Hi I am trying to read XML files (invoices) from a directory and display them to the visitor. Each XML file contains several invoices. The visitor then clicks on the XML file (invoices). My PHP snippet should open the xml file and

Re: [PHP] XML with PHP

2010-08-26 Thread Michael Shadle
On Thu, Aug 26, 2010 at 3:10 AM, Sridhar Pandurangiah sridharpa...@gmail.com wrote: Mike Thanks a ton for the quick response. I have updated the mail id on my email client (using Mozilla TB) and I did repost but your reply was quicker! Will try this out and post the results on this thread.

Re: [PHP] XML with PHP

2010-08-26 Thread Sridhar Pandurangiah
Hi I guess my post was misunderstood. I was just trying to figure out if there is a better way other than displaying a form. That's the reason I posted my php snippet in my first post. Thanks for the help. Best regards Sridhar Original Message Subject: Re: [PHP] XML

Re: [PHP] XML with PHP

2010-08-26 Thread Sridhar Pandurangiah
clicked. Should I display the directory listing as a form? Best regards Sridhar Original Message Subject: Re: [PHP] XML with PHP From: mike...@gmail.com (Michael Shadle) To: Date: Thu Aug 26 2010 15:32:13 GMT+0530 (IST) -- PHP General Mailing List (http://www.php.net

Re: [PHP] xml/cap problems

2010-08-22 Thread Adam Richardson
On Sat, Aug 21, 2010 at 5:53 PM, Tom Shaw ts...@oitc.com wrote: I am trying to decode and encode nws compatible cap xml. An example is at the bottom of this post. simplexml_load_file works fine if cap: is removed before processing. However, if it is not simplexml_load_file does not parse the

Re: [PHP] XML DOM

2010-07-22 Thread Benjamin Hawkes-Lewis
On 21 Jul 2010, at 19:32, Ben Miller wrote: Problem: If street2 (or any other field) has no value, PHP is outputting the XML node as street2 /, which is producing a JS error when I try to call: script type=text/javascript.. street2 =

Re: [PHP] XML parser

2010-07-13 Thread Andrew Ballard
On Tue, Jul 13, 2010 at 10:14 AM, ppps...@gmail.com ppps...@gmail.com wrote: Hello. I have html: h3Header/h3 pParagraph 1/p pParagraph n/p div h3Header/h3 pParagraph 1/p     pParagraph n/p /div need to parse it like this array: array( [0] = array( 'h3' = 'header' , 'p' =

Re: [PHP] XML functions

2010-03-06 Thread Andre Polykanine
Hello Ahmad and all, I will expand a little bit your question joining to it: what is the better technique to make an RSS feed on the website? The website is manually written, no CMS. -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN: arthaelon @ yandex.ru;

Re: [PHP] XML functions

2010-03-06 Thread Ashley Sheridan
On Sat, 2010-03-06 at 21:50 +0200, Andre Polykanine wrote: Hello Ahmad and all, I will expand a little bit your question joining to it: what is the better technique to make an RSS feed on the website? The website is manually written, no CMS. -- With best regards from

Re: [PHP] XML functions

2010-03-06 Thread Michael A. Peters
Ahmad F AlTwaijiry wrote: Dears When i checked the php manual i found many Solutions to read/write xml files and im confused now :) Which function/library is better and is there any new article that compare each function/library? I use DOMDocument. It works best if the input file you are

Re: [PHP] XML functions

2010-03-06 Thread Michael A. Peters
Andre Polykanine wrote: Hello Ahmad and all, I will expand a little bit your question joining to it: what is the better technique to make an RSS feed on the website? The website is manually written, no CMS. I wrote a class to do it -

RE: [PHP] XML parsing with PHP

2009-10-22 Thread Jay Blanchard
[snip] I need to transform some XML files and have not really done much XSLT. I am looking for recommendations on ways to parse XML via PHP. The XML files I have contain the content from our website CMS. We are switching from a proprietary CMS to Drupal and I need to transform the XML

Re: [PHP] XML RSS - Unexpected End of File error

2009-10-08 Thread Jonathan Tapicer
Can you show the generated XML? Jonathan On Thu, Oct 8, 2009 at 3:45 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Hi guys, I've knocked up a quick RSS feed on my site. It works fine in Fx 2 3, in Opera it throws an error unexpected end of file but allows the feed to be added

Re: [PHP] XML RSS - Unexpected End of File error

2009-10-08 Thread Ashley Sheridan
On Thu, 2009-10-08 at 15:54 -0300, Jonathan Tapicer wrote: Can you show the generated XML? Jonathan On Thu, Oct 8, 2009 at 3:45 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Hi guys, I've knocked up a quick RSS feed on my site. It works fine in Fx 2 3, in Opera it throws

Re: [PHP] XML RSS - Unexpected End of File error

2009-10-08 Thread Jim Lucas
Ashley Sheridan wrote: On Thu, 2009-10-08 at 15:54 -0300, Jonathan Tapicer wrote: Can you show the generated XML? Jonathan On Thu, Oct 8, 2009 at 3:45 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Hi guys, I've knocked up a quick RSS feed on my site. It works fine in Fx 2 3,

Re: [PHP] XML RSS - Unexpected End of File error

2009-10-08 Thread Ashley Sheridan
On Thu, 2009-10-08 at 12:50 -0700, Jim Lucas wrote: Ashley Sheridan wrote: On Thu, 2009-10-08 at 15:54 -0300, Jonathan Tapicer wrote: Can you show the generated XML? Jonathan On Thu, Oct 8, 2009 at 3:45 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Hi guys, I've

Re: [PHP] XML. Prevent from turning into lt;

2009-09-09 Thread Bastien Koert
On Wed, Sep 9, 2009 at 5:27 AM, Matthew Croudm...@obviousdigital.com wrote: Hiya, I'm writing an app that let's my client upload images, the image html code is added to an XML file. Take a look at the image element below: item Code=e1022    codee1022/code    image![CDATA[img

RE: [PHP] XML. Prevent from turning into lt;

2009-09-09 Thread Bob McConnell
From: Bastien Koert On Wed, Sep 9, 2009 at 5:27 AM, Matthew Croudm...@obviousdigital.com wrote: Hiya, I'm writing an app that let's my client upload images, the image html code is added to an XML file. Take a look at the image element below: item Code=e1022    codee1022/code    

Re: [PHP] XML. Prevent from turning into lt;

2009-09-09 Thread Matthew Croud
On 9 Sep 2009, at 14:26, Bastien Koert wrote: On Wed, Sep 9, 2009 at 5:27 AM, Matthew Croudm...@obviousdigital.com wrote: Hiya, I'm writing an app that let's my client upload images, the image html code is added to an XML file. Take a look at the image element below: item Code=e1022

Re: [PHP] XML. Prevent from turning into lt;

2009-09-09 Thread Eddie Drapkin
On Wed, Sep 9, 2009 at 9:33 AM, Matthew Croud m...@obviousdigital.com wrote: On 9 Sep 2009, at 14:26, Bastien Koert wrote: On Wed, Sep 9, 2009 at 5:27 AM, Matthew Croudm...@obviousdigital.com wrote: Hiya, I'm writing an app that let's my client upload images, the image html code is added

Re: [PHP] XML. Prevent from turning into lt;

2009-09-09 Thread Matthew Croud
On 9 Sep 2009, at 14:36, Bob McConnell wrote: From: Bastien Koert On Wed, Sep 9, 2009 at 5:27 AM, Matthew Croudm...@obviousdigital.com wrote: Hiya, I'm writing an app that let's my client upload images, the image html code is added to an XML file. Take a look at the image element below:

Re: [PHP] XML. Prevent from turning into lt;

2009-09-09 Thread Ashley Sheridan
On Wed, 2009-09-09 at 14:46 +0100, Matthew Croud wrote: On 9 Sep 2009, at 14:36, Bob McConnell wrote: From: Bastien Koert On Wed, Sep 9, 2009 at 5:27 AM, Matthew Croudm...@obviousdigital.com wrote: Hiya, I'm writing an app that let's my client upload images, the image html

Re: [PHP] XML. Prevent from turning into lt;

2009-09-09 Thread Matthew Croud
On 9 Sep 2009, at 16:37, Ashley Sheridan wrote: On Wed, 2009-09-09 at 15:14 +0100, Matthew Croud wrote: On 9 Sep 2009, at 15:09, Ashley Sheridan wrote: On Wed, 2009-09-09 at 14:46 +0100, Matthew Croud wrote: On 9 Sep 2009, at 14:36, Bob McConnell wrote: From: Bastien Koert On Wed, Sep

Re: [PHP] XML. Prevent from turning into lt;

2009-09-09 Thread Ashley Sheridan
On Wed, 2009-09-09 at 16:51 +0100, Matthew Croud wrote: On 9 Sep 2009, at 16:37, Ashley Sheridan wrote: On Wed, 2009-09-09 at 15:14 +0100, Matthew Croud wrote: On 9 Sep 2009, at 15:09, Ashley Sheridan wrote: On Wed, 2009-09-09 at 14:46 +0100, Matthew Croud wrote: On 9 Sep 2009, at

Re: [PHP] XML. Prevent from turning into lt;

2009-09-09 Thread Tony Marston
You need to look at disable_output_escaping at http://www.w3.org/TR/xslt#disable-output-escaping -- Tony Marston http://www.tonymarston.net http://www.radicore.org Matthew Croud m...@obviousdigital.com wrote in message news:2c4840c2-45db-4d6c-b5fa-2cb15b171...@obviousdigital.com... On 9 Sep

Re: [PHP] XML. Prevent from turning into lt;

2009-09-09 Thread Ralph Deffke
give it a try with PDATA instead of CDATA and see what happns Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1252512252.2961.40.ca...@localhost... On Wed, 2009-09-09 at 16:51 +0100, Matthew Croud wrote: On 9 Sep 2009, at 16:37, Ashley Sheridan wrote: On Wed, 2009-09-09

Re: [PHP] XML data extraction

2009-04-02 Thread Peter Ford
Andrew Williams wrote: Best All, How can you best and accurately extract XLM data to DB table. e.g.: EXCHANGE_LIST AMOUNT=3 - EXCHANGE ID_EXCHANGE20/ID_EXCHANGE CODE_EXCHANGEFRA/CODE_EXCHANGE NAME_EXCHANGEFrankfurt/NAME_EXCHANGE /EXCHANGE - EXCHANGE ID_EXCHANGE28/ID_EXCHANGE

Re: [PHP] XML data extraction

2009-04-02 Thread Peter Ford
Andrew Williams wrote: Best All, How can you best and accurately extract XLM data to DB table. e.g.: EXCHANGE_LIST AMOUNT=3 - EXCHANGE ID_EXCHANGE20/ID_EXCHANGE CODE_EXCHANGEFRA/CODE_EXCHANGE NAME_EXCHANGEFrankfurt/NAME_EXCHANGE /EXCHANGE - EXCHANGE ID_EXCHANGE28/ID_EXCHANGE

Re: [PHP] XML data extraction

2009-04-02 Thread Per Jessen
Andrew Williams wrote: Best All, How can you best and accurately extract XLM data to DB table. e.g.: Use XSLT to generate SQL INSERT statements. /Per -- Per Jessen, Zürich (11.3°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML data extraction

2009-04-02 Thread Igor Escobar
@Jessen I read your answer and... You have any article speaking about that you are saying? Regards, Igor Escobar systems analyst interface designer www . igorescobar . com On Thu, Apr 2, 2009 at 8:38 AM, Per Jessen p...@computer.org wrote: Andrew Williams wrote: Best All, How can you

Re: [PHP] XML data extraction

2009-04-02 Thread Per Jessen
Igor Escobar wrote: @Jessen I read your answer and... You have any article speaking about that you are saying? Hi Igor I don't have anything handy, but there's plenty of good material on the internet about XSLT. The main point is - XSLT is just reformatting the data from XML format to a

Re: [PHP] XML and :

2009-02-24 Thread Andrew Ballard
On Tue, Feb 24, 2009 at 9:51 AM, Merlin Morgenstern merli...@fastmail.fm wrote: Hi there, I am trying to pars an XML file with php. This works if the xml tag looks like this: anbieternr88/anbieternr In that case I retrieve the info: $xml-anbieternr But now the tag looks different like this:

Re: [PHP] XML and :

2009-02-24 Thread mike
On Tue, Feb 24, 2009 at 6:51 AM, Merlin Morgenstern merli...@fastmail.fm wrote: The command $xml-imo:anbieternr does not work in that case. Has somebody an idea how to adress this? you could cheat and string replace the node prefix in the document imo: to imo_ and then you can use simplexml.

Re: [PHP] XML and :

2009-02-24 Thread Per Jessen
Merlin Morgenstern wrote: Hi there, I am trying to pars an XML file with php. This works if the xml tag looks like this: anbieternr88/anbieternr In that case I retrieve the info: $xml-anbieternr But now the tag looks different like this: imo:anbieternr88/imo:anbieternr The command

RE: [PHP] XML - XSLT transformation using XSLTProcessor class

2009-02-20 Thread Boyd, Todd M.
-Original Message- From: th.he...@gmail.com [mailto:th.he...@gmail.com] On Behalf Of German Geek Sent: Friday, February 20, 2009 9:18 AM To: PHP General list Subject: [PHP] XML - XSLT transformation using XSLTProcessor class Hi All, We are trying to import some xml data into

Re: [PHP] XML - XSLT transformation using XSLTProcessor class

2009-02-20 Thread German Geek
Thanks a lot. Sorry but 5 minutes after sending this email i figured it out myself. I didn't know how to answer my own message because i didn't get my own message... Anyway, this worked for me: xsl:for-each select=//elementA | //elementB xsl:value-of select=name(.) / /xsl:for-each Hope this

Re: [PHP] XML package on PHP

2009-01-07 Thread Jim Lucas
Merlin Morgenstern wrote: Hi there, I need pars an xml file with php 4. There seems to be a good package out there active link xml. However, last development was 2004. Is there something new around which you would recommend over active link? Thank you for any hints. Best regards,

Re: [PHP] XML package on PHP

2009-01-07 Thread ceo
XML in PHP4? Don't. :-) It was very painful and with all kinds of quirks, from my limited experience. PHP5 was a breeze. Consider hosting a quick/easy service on a PHP5 box to convert XML to PHP serialized data or something as well. Could be less painful. Or just upgrade, since PHP4

Re: [PHP] XML package on PHP

2009-01-07 Thread Merlin Morgenstern
^THANX: Will upgrade to php5. c...@l-i-e.com wrote: XML in PHP4? Don't. :-) It was very painful and with all kinds of quirks, from my limited experience. PHP5 was a breeze. Consider hosting a quick/easy service on a PHP5 box to convert XML to PHP serialized data or something as well. Could

Re: [PHP] XML Get Value of Node DOMXPath

2008-12-16 Thread Rob Richards
Stephen Alistoun wrote: Hello all, Need help to get the value of the node. We know how to get the value of the city , item and itemPrice nodes below. How do we get the value of NumberOfRooms? $hotelElements = $xpath-query( '', $searchReponseElement );

Re: [PHP] XML RSS installation

2008-12-02 Thread ceo
htdocs -- This the document root of your website pear + HTML + Mail + Net If you're going to set your include path properly, you might as well not put PEAR in htdocs, since none of those files are front-facing URLs that should be visited by an end user. They belong in a non web root

Re: [PHP] XML RSS installation

2008-12-02 Thread Richard Heyes
What do you mean by replicating the directory structure? PEAR has a directory structure. Duplicate it and set you include_path accordingly. Have a look at the application structure on article my website ( http://www.phpguru.org ) - it may be of some help. Eg: htdocs -- This the document root

Re: [PHP] XML RSS installation

2008-12-02 Thread Richard Heyes
htdocs -- This the document root of your website pear + HTML + Mail + Net That's not what I wrote: htdocs -- This the document root of your website pear + HTML + Mail + Net -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org (Updated November 29th)

Re: [PHP] XML RSS installation

2008-12-02 Thread Richard Heyes
I apologize for the misunderstanding. That's OK, I forgive you my child. :-) -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org (Updated November 29th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML RSS installation

2008-12-02 Thread ceo
htdocs -- This the document root of your website pear + HTML + Mail + Net That's not what I wrote: htdocs -- This the document root of your website pear + HTML + Mail + Net I apologize for the misunderstanding. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] XML RSS installation

2008-12-01 Thread Richard Heyes
... You might be interested to know that with PEAR there is absolutely no need to use the installer at all. You may find it easier not to. For example the file you mentioned (XML_RSS) is here: http://cvs.php.net/viewvc.cgi/pear/XML_RSS/RSS.php?revision=1.28view=co You will need to replicate

Re: [PHP] XML Encoding - with examples

2008-07-29 Thread Andrew Ballard
On Tue, Jul 29, 2008 at 2:33 PM, Thiago H. Pojda [EMAIL PROTECTED] wrote: Okay, After much iconv, headers and workarounds I figured I can't use DOMDocument for XMLs when under ISO-8859-1 encoding without messing accented chars. The idea is simple: get a query result and turn into a XML.

Re: [PHP] XML Encoding

2008-07-29 Thread mike
you should want it to be utf-8 anyway. On 7/29/08, Thiago H. Pojda [EMAIL PROTECTED] wrote: Guys, I'm building a XML in a PHP Script. Everything works fine until I add accented (ISO-8859-1) characters into it. As far as I can see, there's no way to change DOMDocument's encoding from UTF-8,

Re: [PHP] XML Encoding - with examples

2008-07-29 Thread Thiago H. Pojda
On Tue, Jul 29, 2008 at 4:20 PM, Andrew Ballard [EMAIL PROTECTED] wrote: On Tue, Jul 29, 2008 at 2:33 PM, Thiago H. Pojda [EMAIL PROTECTED] wrote: babling and code -- Thiago Henrique Pojda Are you sure the accented characters you are using are part of ISO-8859-1 and not UTF-8? I don't

Re: [PHP] XML Encoding - with examples

2008-07-29 Thread Andrew Ballard
On Tue, Jul 29, 2008 at 3:52 PM, Thiago H. Pojda [EMAIL PROTECTED] wrote: That's weird. I just changed it to convert everything to UTF and things appear ok on IE and messy in Firefox. I guess firefox isn't been nice to my headers after all. It keeps saying the content is in ISO. Thanks for

Re: [PHP] XML Encoding - with examples

2008-07-29 Thread Thiago H. Pojda
On Tue, Jul 29, 2008 at 4:59 PM, Andrew Ballard [EMAIL PROTECTED] wrote: On Tue, Jul 29, 2008 at 3:52 PM, Thiago H. Pojda [EMAIL PROTECTED] wrote: That's weird. I just changed it to convert everything to UTF and things appear ok on IE and messy in Firefox. I guess firefox isn't been nice to

Re: [PHP] XML file locking

2008-05-19 Thread Iv Ray
Kaja wrote: Does anyone know if any of the PHP 5 XML libraries use flock() internally? I'd like to use XMLReader and XMLWriter but I need to make sure theres no writing going on while reading and no more than one writer at time. And if I have to use DOM, does DOM lock the file when it calls

RE: [PHP] XML file locking

2008-05-19 Thread bruce
Subject: Re: [PHP] XML file locking Kaja wrote: Does anyone know if any of the PHP 5 XML libraries use flock() internally? I'd like to use XMLReader and XMLWriter but I need to make sure theres no writing going on while reading and no more than one writer at time. And if I have to use DOM, does

Re: [PHP] XML file locking

2008-05-19 Thread Iv Ray
bruce wrote: Couldn't you also create a rather simple test to determine if the locking of the file takes place? I personally do not trust file system level locks. Even if a software is not intended to be portable across operating systems, it is possible to use different file systems under

RE: [PHP] XML file locking

2008-05-19 Thread bruce
to get a feel for how often you might run into file conflicts... -Original Message- From: Iv Ray [mailto:[EMAIL PROTECTED] Sent: Monday, May 19, 2008 7:45 AM To: bruce Cc: 'Kaja'; php-general@lists.php.net Subject: Re: [PHP] XML file locking bruce wrote: Couldn't you also create

Re: [PHP] xml processing cdata

2008-05-09 Thread Brady Mitchell
The last comment on http://php.net/manual/en/function.simplexml-load-string.php is what you need: simplexml_load_string($xmlstring, 'SimpleXMLElement', LIBXML_NOCDATA); Brady On May 9, 2008, at 1250PM, Chris W wrote: I have an xml file with a cdata element like the one below. How would

Re: [PHP] XML encoding variable simpleXML on Linux

2008-02-22 Thread Bojan Tesanovic
encoding=UTF-8 doesn't guarantee that XML is encoded in UTF-8 its only purpose is to tell XML parser how to decode that XML document . it is responsibility of document creator to ensure that XML is proper UTF-8 document . on PHP side when creating XML there are number of functions to

Re: [PHP] XML encoding variable simpleXML on Linux

2008-02-22 Thread Larry Brown
It is not that I want to generate the document in UTF-8. I just need to specify the correct encoding. My assumption that it was UTF-8 based on what my command line settings are is obviously incorrect. How can I tell what php is encoding in by default? Larry On Fri, 2008-02-22 at 17:20 +0100,

Re: [PHP] XML encoding variable simpleXML on Linux

2008-02-22 Thread Nathan Rixham
Larry Brown wrote: It is not that I want to generate the document in UTF-8. I just need to specify the correct encoding. My assumption that it was UTF-8 based on what my command line settings are is obviously incorrect. How can I tell what php is encoding in by default? Larry On Fri,

Re: [PHP] XML Data merging

2008-01-14 Thread Naz Gassiep
Eric Butera wrote: On 1/12/08, Naz Gassiep [EMAIL PROTECTED] wrote: I'm using simplexml to fetch data from a set of data files. If I have two files, and one is an update to the other, is there an easy way to merge the two files together, rather than having write logic that checks one and

Re: [PHP] XML Data merging

2008-01-14 Thread Jim Lucas
Naz Gassiep wrote: Eric Butera wrote: On 1/12/08, Naz Gassiep [EMAIL PROTECTED] wrote: I'm using simplexml to fetch data from a set of data files. If I have two files, and one is an update to the other, is there an easy way to merge the two files together, rather than having write logic

Re: [PHP] XML Data merging

2008-01-12 Thread Eric Butera
On 1/12/08, Naz Gassiep [EMAIL PROTECTED] wrote: I'm using simplexml to fetch data from a set of data files. If I have two files, and one is an update to the other, is there an easy way to merge the two files together, rather than having write logic that checks one and then the other? Both

Re: [PHP] XML Data merging

2008-01-12 Thread Steve Edberg
At 12:10 PM -0500 1/12/08, Eric Butera wrote: On 1/12/08, Naz Gassiep [EMAIL PROTECTED] wrote: I'm using simplexml to fetch data from a set of data files. If I have two files, and one is an update to the other, is there an easy way to merge the two files together, rather than having write

Re: [PHP] XML Parse Error

2007-12-21 Thread Zoltán Németh
2007. 12. 21, péntek keltezéssel 10.12-kor VamVan ezt írta: Hi All, Happy Christmas!!! Please see the code below: $xml = ; $xml = '?xml version=1.0 encoding=UTF-8?'; $xml .= 'request'; $xml .= 'emailAddress'.

Re: [PHP] XML Extraction

2007-12-17 Thread Nathan Nobbe
On Dec 17, 2007 10:44 PM, VamVan [EMAIL PROTECTED] wrote: Hello, I receive an output as an XML File. Please provide some scripts that I can use for extraction of the values. For Example: titlehello/title titlehello2/title titlehello3/title are 3 different records in the XML File.

Re: [PHP] xml reader/writer

2007-08-28 Thread Per Jessen
Sam Baker wrote: I'm looking for a php script that will read any xml file, display the contents in html, with the option of adding an entry (in the same scheme, whatever that might be) or deleting existing entries. I think I could write this, but it would take a while. Use the XSLT

RE: [PHP] xml reader/writer

2007-08-27 Thread Jay Blanchard
[snip] So I don't have to reinvent anything, does such a thing exist anywhere that anyone knows of: I'm looking for a php script that will read any xml file, display the contents in html, with the option of adding an entry (in the same scheme, whatever that might be) or deleting existing

Re: [PHP] xml reader/writer

2007-08-27 Thread Richard Lynch
On Mon, August 27, 2007 12:41 pm, Sam Baker wrote: So I don't have to reinvent anything, does such a thing exist anywhere that anyone knows of: I'm looking for a php script that will read any xml file, display the contents in html, with the option of adding an entry (in the same scheme,

Re: [PHP] XML editors

2007-08-16 Thread Frank Arensmeier
Although I am not able to give you any helping advice, I would like to know if there are any PHP based XML online - editors out there (that would allow me to edit XML files online so to say). One thing that poped up in my mind was Tiny MCE. Sure, it could be possible to customise Tiny MCE,

  1   2   3   4   5   6   >