Re: [PHP] XML to Array

2013-03-12 Thread Bastien
t;>> 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

Re: [PHP] XML to Array

2013-03-11 Thread Karl DeSaulniers
ost 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 here on h

Re: [PHP] XML to Array

2013-03-11 Thread Karl DeSaulniers
ost 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 here on h

Re: [PHP] XML to Array

2013-03-11 Thread Bastien Koert
> 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 >>> >>&g

Re: [PHP] XML to Array

2013-03-10 Thread Karl DeSaulniers
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 add

Re: [PHP] XML to Array

2013-03-10 Thread richard gray
ons/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 it works well except it doesn't grab a

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

2012-08-09 Thread Carlos Medina
r: ' . $oErro->message ) . > ''; > break; > } > } > } > > work here ... > > } > > } > > > $server = new SoapServer(null, array( &

RES: [PHP] XML/PHP web service

2012-08-09 Thread Alejandro Michelin Salomon
$sCod .= '' . $oErro->code . '' . utf8_encode( ' Fatal Error: ' . $oErro->message ) . ''; break; } } } work here ... } } $server =

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 pro

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 w

Re: [PHP] XML/PHP web service

2012-08-08 Thread Ashley Sheridan
Phillip Baker 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 >to anoth

[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 enabled but not working

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

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 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 know any more a

Re: [PHP] XML enabled but not working

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

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 wrote: >> echo "" | 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: http://www.php.net/unsub.php

[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 "" | php Fatal error: Call to undefined function xml_parse

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 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 to string type necess

Re: [PHP] XML array

2011-07-05 Thread Stuart Dallas
On Tue, Jul 5, 2011 at 6:43 PM, Tamara Temple 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 to string type necessary there? I haven't > done that bef

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 4:36 PM, Kanishka 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.. > > * > > the the title > 7-6-2011

[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.. * the the title 7-6-2011 book 1 author 1 book 2 auther 2 * i want to put both "

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 Lis

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 Daniel Brown
On Sun, Apr 17, 2011 at 11:38, Negin Nickparsa 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 miserably. I repeat

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:34, Negin Nickparsa 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 run the server fo

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

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 wrote: > On 3 April 2011 22:35, Andre Polykanine 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 hav

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 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 ... It would

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

2011-04-03 Thread Andre Polykanine
nsule Facebook: http://facebook.com/menelion Original message From: Peter Lind To: Andre Polykanine Date created: , 10:44:31 PM Subject: [PHP] Re: Config files: what is best? (was: Re: [PHP] XML... Useful or another layer of complexity?) On 3 April 2011 21:41,

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

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 q

[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 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 would suggest

[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 To: Per Jessen Date created: , 10:27:09 PM Subject: [PHP] XML... Useful or another layer of complexity? Like every other

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,

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 i

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

2011-04-03 Thread Ashley Sheridan
"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

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

Re: [PHP] XML with PHP

2010-08-26 Thread Sridhar Pandurangiah
; that the user 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.ph

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

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

Re: [PHP] XML with PHP

2010-08-26 Thread Michael Shadle
On Thu, Aug 26, 2010 at 3:10 AM, Sridhar Pandurangiah 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. Just waiting for >

Re: [PHP] XML with PHP

2010-08-26 Thread Michael Shadle
On Thu, Aug 26, 2010 at 2:54 AM, 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 locate the app

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

Re: [PHP] xml/cap problems

2010-08-22 Thread Adam Richardson
On Sat, Aug 21, 2010 at 5:53 PM, Tom Shaw 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 file at a

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

Re: [PHP] XML DOM

2010-07-21 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 , which is producing a JS error when I try to call: > > .. > > street2 = x[i].getElementsByTagName("street2")[0].childNodes[0].nodeValue; > >

Re: [PHP] XML parser

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

[PHP] XML parser

2010-07-13 Thread ppps...@gmail.com
Hello. I have html: Header Paragraph 1 Paragraph n Header Paragraph 1 Paragraph n 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' => 'header' , 'p' => arr

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 - http://www.phpclasses.org/browse/package/

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 r

Re: [PHP] XML functions

2010-03-06 Thread Ashley Sheridan
> To: php-general@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 a

Re: [PHP] XML functions

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

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

[PHP] XML parsing with PHP

2009-10-21 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 int

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 > >> wrote: > >>> Hi guys, > >>> > >>>

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 >> 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 15:54 -0300, Jonathan Tapicer wrote: > Can you show the generated XML? > > Jonathan > > On Thu, Oct 8, 2009 at 3:45 PM, Ashley Sheridan > 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 "un

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 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 anyway, and Chrome just

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

Re: [PHP] XML. Prevent < from turning into <

2009-09-09 Thread Ralph Deffke
give it a try with PDATA instead of CDATA and see what happns "Ashley Sheridan" 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 at 15:14 +0100, M

Re: [PHP] XML. Prevent < from turning into <

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" wrote in message news:2c4840c2-45db-4d6c-b5fa-2cb15b171...@obviousdigital.com... > > On 9 Sep 2009, at 14:26, B

Re: [PHP] XML. Prevent < from turning into <

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

Re: [PHP] XML. Prevent < from turning into <

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 9,

Re: [PHP] XML. Prevent < from turning into <

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 > >> Croud wrote: > >>> > >>> Hiya, > >>> I'm writing an app that let's my client upload images, the image > >>> html c

Re: [PHP] XML. Prevent < from turning into <

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 Croud 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 element below: e1022 Blue Ski T

Re: [PHP] XML. Prevent < from turning into <

2009-09-09 Thread Eddie Drapkin
On Wed, Sep 9, 2009 at 9:33 AM, Matthew Croud wrote: > > On 9 Sep 2009, at 14:26, Bastien Koert wrote: > >> On Wed, Sep 9, 2009 at 5:27 AM, Matthew Croud >> 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

Re: [PHP] XML. Prevent < from turning into <

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 Croud 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 element below: e1022 Blue Ski Trousers 8.99 No

RE: [PHP] XML. Prevent < from turning into <

2009-09-09 Thread Bob McConnell
From: Bastien Koert > On Wed, Sep 9, 2009 at 5:27 AM, Matthew Croud 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 element below: >> >> >>    e1022 >>     >>    Blue Ski Trousers >>    8.99 >>   >>

Re: [PHP] XML. Prevent < from turning into <

2009-09-09 Thread Bastien Koert
On Wed, Sep 9, 2009 at 5:27 AM, Matthew Croud 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 element below: > > >    e1022 >     >    Blue Ski Trousers >    8.99 >   > > Now, whenever PHP writes this to

[PHP] XML. Prevent < from turning into <

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 element below: e1022 Blue Ski Trousers 8.99 Now, whenever PHP writes this to the XML files, it turns the < and > into < and > . which means it

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 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 wrote: > Andrew Williams wrote: > > > Best All, > > > > How can you best and

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.

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.: > > > - > > 20 > FRA > Frankfurt > > - > > 28 > LSE > London Stock Exchange > > - > > 226 > GER > Xetra > > > > www.willandy.co.uk > Oh, I thought of another one: Write some XSL

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.: > > > - > > 20 > FRA > Frankfurt > > - > > 28 > LSE > London Stock Exchange > > - > > 226 > GER > Xetra > > > > www.willandy.co.uk > Write some code to read the XML file. (you c

[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.: - 20 FRA Frankfurt - 28 LSE London Stock Exchange - 226 GER Xetra www.willandy.co.uk

[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 below 1.1.3 and it's number gets changed from 1.1.1 > 1.1.3 and 1.1.2 > 1.1.1

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: 88 > In that case I retrieve the info: $xml->anbieternr > > But now the tag looks different like this: > 88 > > The command $xml->imo:anbieternr does not work in that

Re: [PHP] XML and :

2009-02-24 Thread mike
On Tue, Feb 24, 2009 at 6:51 AM, Merlin Morgenstern 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. it's an ugly hac

Re: [PHP] XML and :

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

[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: 88 In that case I retrieve the info: $xml->anbieternr But now the tag looks different like this: 88 The command $xml->imo:anbieternr does not work in that case. Has somebody an idea how to adress

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

2009-02-20 Thread German Geek
ry 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

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, > >

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

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

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

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 rega

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( $h

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

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 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 29

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 roo

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-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.28&view=co You will need to replicate t

[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

  1   2   3   4   5   6   7   8   9   >