Re: [PHP] XML to Array

2013-03-12 Thread Bastien
: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 - http://stackoverflow.com/questions/1156957/php-xml

Re: [PHP] XML to Array

2013-03-11 Thread Bastien Koert
. I am trying to get the attributes of an xml node. I have this code: [snip] this may help - http://stackoverflow.com/questions/1156957/php-xml-attribute-parsing I do admit I haven't the foggiest idea what I am doing here, so I am noobing out here on how this php function is really working. I

Re: [PHP] XML to Array

2013-03-11 Thread Karl DeSaulniers
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 - http://stackoverflow.com/questions/1156957/php-xml-attribute-parsing I do admit I haven't the foggiest idea what I am doing here, so I am noobing out

Re: [PHP] XML to Array

2013-03-11 Thread Karl DeSaulniers
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 - http://stackoverflow.com/questions/1156957/php-xml-attribute-parsing I do admit I haven't the foggiest idea what I am doing here, so I am noobing out

Re: [PHP] XML to Array

2013-03-10 Thread richard gray
/php-xml-attribute-parsing I do admit I haven't the foggiest idea what I am doing here, so I am noobing out here on how this php function is really working. I got it off php.net and am trying to implement it in my code. Without my addition it works well except it doesn't grab any attributes which

Re: [PHP] XML to Array

2013-03-10 Thread Karl DeSaulniers
] this may help - http://stackoverflow.com/questions/1156957/php-xml-attribute-parsing I do admit I haven't the foggiest idea what I am doing here, so I am noobing out here on how this php function is really working. I got it off php.net and am trying to implement it in my code. Without my addition

RES: [PHP] XML/PHP web service

2012-08-09 Thread Alejandro Michelin Salomon
-handle(); Alejandro M.S -Mensagem original- De: Phillip Baker [mailto:phil...@freewolf.net] Enviada em: quarta-feira, 8 de agosto de 2012 19:12 Para: php-general@lists.php.net Assunto: [PHP] XML/PHP web service Greetings all, I am looking for some options here. I am in need of creating

Re: RES: [PHP] XML/PHP web service

2012-08-09 Thread Carlos Medina
[mailto:phil...@freewolf.net] Enviada em: quarta-feira, 8 de agosto de 2012 19:12 Para: php-general@lists.php.net Assunto: [PHP] XML/PHP web service 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

[PHP] XML/PHP web service

2012-08-08 Thread Phillip Baker
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 to another server. But I need to accept 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

[PHP] XML enabled but not working

2011-09-15 Thread Matthew Pounsett
I seems to behaving issues with php5 on one particular server, and I haven't been able to find the issue. Basically, php says XML is enabled, but xml functions are missing. php -i | grep XML support libXML support = active echo ? print xml_parser_create(''); ? | php Fatal error: Call to

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:

[PHP] XML array

2011-07-05 Thread Kanishka
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 title/title date7-6-2011/date /head data book namebook 1/name

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

[PHP] XML Smart Home

2011-04-17 Thread Negin Nickparsa
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 run the server for the second time someone told me that i must add xml code does

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

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

2011-04-03 Thread Jason Pruim
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 truly useful or is it

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
/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion Original message From: Peter Lind peter.e.l...@gmail.com To: Per Jessen Date created: , 10:27:09 PM Subject: [PHP] XML... Useful or another layer of complexity

[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 ...

[PHP] XML with PHP

2010-08-26 Thread user
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 locate the appropriate invoice and display the content. I

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.

[PHP] XML with PHP

2010-08-26 Thread Sridhar Pandurangiah
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 locate the appropriate invoice and display the content. I have

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

[PHP] xml/cap problems

2010-08-21 Thread Tom Shaw
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 file at all and libxml_get_errors returns no errors. Any and

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 =

[PHP] XML parser

2010-07-13 Thread ppps...@gmail.com
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' = array( [0] = 'Paragraph 1' , [n-1] = 'Paragraph N' ) [1] = array( ['div'] = array ( 'h3' =

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' =

[PHP] XML functions

2010-03-06 Thread Ahmad F AlTwaijiry
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? Thanks Ahmad AlTwaijiry http://www.AlTwaijiry.com -- PHP General Mailing List

Re: [PHP] XML functions

2010-03-06 Thread Andre Polykanine
; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Original message - From: Ahmad F AlTwaijiry ah...@altwaijiry.com To: php-general@lists.php.net php-general@lists.php.net Date: Saturday, March 6, 2010, 7:00:04 PM Subject: [PHP] XML

Re: [PHP] XML functions

2010-03-06 Thread Ashley Sheridan
@lists.php.net Date: Saturday, March 6, 2010, 7:00:04 PM Subject: [PHP] XML functions 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

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 -

[PHP] XML parsing with PHP

2009-10-22 Thread Mari Masuda
Hi, 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 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

[PHP] XML RSS - Unexpected End of File error

2009-10-08 Thread Ashley Sheridan
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 anyway, and Chrome just says there's an XML error, and gives the second from last line as the one containing the error. I tried

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

[PHP] XML. Prevent from turning into lt;

2009-09-09 Thread Matthew Croud
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 src=uploads/image2.jpg alt=Homepage Image width=124 height=70 /]]/image nameBlue

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

[PHP] XML data extraction

2009-04-02 Thread Andrew Williams
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 CODE_EXCHANGELSE/CODE_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

[PHP] XML manipulation

2009-03-03 Thread Raido
Hi! Manipulating XML files with PHP is quite new thing to me, so I could need a bit help with it. Here are the questions(and below are XML schema): 1) Is it possible to change those blocks order? For example I move block number=1.1.1 below 1.1.3 and it's number gets changed from 1.1.1 1.1.3

[PHP] XML and :

2009-02-24 Thread Merlin Morgenstern
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 $xml-imo:anbieternr does not work

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

[PHP] XML - XSLT transformation using XSLTProcessor class

2009-02-20 Thread German Geek
Hi All, We are trying to import some xml data into the database. My idea was to make an xslt and then transform the xml to php code which generates the queries necessary and then gets evaled as php code for the actual import... Anyway, i got it working (mostly)! But i need to get the current

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

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

2009-02-20 Thread German Geek
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 the database. My idea was to make an xslt and then transform the xml to php code which

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,

[PHP] XML package on PHP

2009-01-07 Thread Merlin Morgenstern
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, Merlin -- PHP General Mailing List

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 );

[PHP] XML Get Value of Node DOMXPath

2008-12-15 Thread Stephen Alistoun
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 ); foreach(

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

[PHP] XML RSS installation

2008-12-01 Thread Joe Schoemann
I previously had my web page hosted on a shared Apache server. The web hosts installed the PEAR modules on the system for me. I have now decided to go to Godaddy who have a shared Linux server. They do not install PEAR modules and I have to do myself. I found the go-pear.php program and managed

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

[PHP] XML Encoding

2008-07-29 Thread Thiago H. Pojda
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, right? Thanks, -- Thiago Henrique Pojda

  1   2   3   4   5   6   7   8   9   >