[PHP] XML Encoding - with examples

2008-07-29 Thread Thiago H. Pojda
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. Using mysql_fetch_object is the best way for this task. If I just do nothing: get

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

[PHP] XML DOM problem with getAttribute(string)

2008-06-11 Thread Borden Rhodes
Hullo! I'm having a pig of a time trying to figure this one out: I have an XHTML document which I've loaded into a DOMDocument because I want to add more tags to it. However, since I live in a bilingual country, I want to get the document's xml:lang attribute so I know what language to add my

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

[PHP] XML file locking

2008-05-18 Thread Kaja
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 save()? Or is

[PHP] xml processing cdata

2008-05-09 Thread Chris W
I have an xml file with a cdata element like the one below. How would I use the php xml functions to extract that cdata and save it as a pdf file? attach id=2 display-name=207069.pdf file-name=207069.pdf obj-type=1 system=0 ![CDATA[eJysumVQW1/0NtoWK95CcXe3EFxK8QDBCQ5 .. ]] /attach

Re: [PHP] xml processing cdata

2008-05-09 Thread Brady Mitchell
I use the php xml functions to extract that cdata and save it as a pdf file? attach id=2 display-name=207069.pdf file-name=207069.pdf obj- type=1 system=0 ![CDATA[eJysumVQW1/0NtoWK95CcXe3EFxK8QDBCQ5 .. ]] /attach The code I have is this... $in = fopen(test.xml, 'r'); $XMLStr

[PHP] XML encoding variable simpleXML on Linux

2008-02-22 Thread Larry Brown
I am using PHP on Linux to communicate with an XML peer. I pull and push documents from and to their server. On the console I use UTF-8 as far as I can tell. When I send these documents should my leading tag read: ?xml versionnn=1.0 encoding=UTF-8? or is the encoding done by PHP and how do I

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

[PHP] XML Data merging

2008-01-12 Thread Naz Gassiep
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 files conform to the same DTD and thus the data in

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

[PHP] XML Parse Error

2007-12-21 Thread VamVan
Hi All, Happy Christmas!!! Please see the code below: $xml = ; $xml = '?xml version=1.0 encoding=UTF-8?'; $xml .= 'request'; $xml .= 'emailAddress'. $this-xmlValueEncoding($post['Email']) .'/emailAddress'; $xml .= 'firstName' .

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

[PHP] XML Extraction

2007-12-17 Thread VamVan
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. How can I retrieve the result set in a loop and also sort it like

Re: [PHP] XML Extraction

2007-12-17 Thread Nathan Nobbe
. How can I retrieve the result set in a loop and also sort it like DESC and ASC for example. While() { xml['title'] // Value } ?php $xml= XML container titlei/title titlecare/title titleabout/title titlethings/title arbitraryContentxmlInPhpIsFun

[PHP] PHP/XML/XSLT

2007-09-13 Thread Mikey
For better (or in my view worse) the company I work for uses the above combination for rendering it's XHTML. Recent we upgraded our version of libxslt from 1.1.9 to 1.1.17 and for some reason we have lost our error reporting. Unfortunately we have not lost the errors and so are forced with

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

[PHP] xml reader/writer

2007-08-27 Thread Sam Baker
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 entries. I

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,

[PHP] XML editors

2007-08-15 Thread Al
What do you guys use for casual XML editing, besides plain text editors? Ones that'll error check and allow fixing files with errors? Thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML editors

2007-08-15 Thread Stut
Al wrote: What do you guys use for casual XML editing, besides plain text editors? Ones that'll error check and allow fixing files with errors? Thanks... I tend to use Visual Studio for this sort of thing since I usually have it open anyway. -Stut -- http://stut.net/ -- PHP General

Re: [PHP] XML editors

2007-08-15 Thread Stut
I assume this comment was aimed at the list and not just me. Kelvin Park wrote: Stut wrote: Al wrote: What do you guys use for casual XML editing, besides plain text editors? Ones that'll error check and allow fixing files with errors? Thanks... I tend to use Visual Studio for this sort

Re: [PHP] About PHP/XML/XSLT/MYSQL Web Sites

2007-07-13 Thread Richard Lynch
On Thu, July 12, 2007 4:15 pm, Kelvin Park wrote: I'm trying to setup a XSLT based web site. I wasn't exactly sure about the flow of the whole system when data from relational database is transferred to XML and in turn the data inputted from the user is relayed back to the database through

Re: [PHP] About PHP/XML/XSLT/MYSQL Web Sites

2007-07-13 Thread Richard Lynch
On Fri, July 13, 2007 12:19 am, Nathan Nobbe wrote: thing as i mentioned before is i cannot see a reason to create xml data while processing a GET or POST request from a client; it would just be an extra step with no apparent benefit as far as i can tell. You DEFINITELY are not being nearly

Re: [PHP] Re: About PHP/XML/XSLT/MYSQL Web Sites

2007-07-13 Thread Nathan Nobbe
Although it is necessary to convert SQL data into XML before it can be processed in an XSL transformation, it is a waste of time converting user input into XML before it is added to the database as none of the SELECT/INSERT/UPDATE/DELETE commands can work with XML files. It is far easier to take

[PHP] Re: About PHP/XML/XSLT/MYSQL Web Sites

2007-07-13 Thread Tony Marston
Although it is necessary to convert SQL data into XML before it can be processed in an XSL transformation, it is a waste of time converting user input into XML before it is added to the database as none of the SELECT/INSERT/UPDATE/DELETE commands can work with XML files. It is far easier to

[PHP] About PHP/XML/XSLT/MYSQL Web Sites

2007-07-12 Thread Kelvin Park
I'm trying to setup a XSLT based web site. I wasn't exactly sure about the flow of the whole system when data from relational database is transferred to XML and in turn the data inputted from the user is relayed back to the database through XML (or directly to the database with PHP DB

Re: [PHP] About PHP/XML/XSLT/MYSQL Web Sites

2007-07-12 Thread Nathan Nobbe
kelvin, attached is a very simple diagram i put together when i got home illustrating a possible relationship between the main components in an xsl templated php application w/ a database back-end. as ive mentioned there are other configurations as well. primarily the main options in the

Re: [PHP] xml parsing

2007-03-12 Thread Richard Lynch
I don't think that's valid XML, because you are mixing your content with your XML tags in a way that will confuse the two... If you can FIX the XML by using the CDATA stuff, or htmlentities encoding the HTML or something, that would be best. If you are STUCK with this bogus XML, you could

Re: [PHP] xml parsing

2007-03-12 Thread Myron Turner
Richard Lynch wrote: I don't think that's valid XML, because you are mixing your content with your XML tags in a way that will confuse the two... If you can FIX the XML by using the CDATA stuff, or htmlentities encoding the HTML or something, that would be best. If you are STUCK with this

[PHP] xml parsing

2007-03-11 Thread Marije van Deventer
I have been trying to parse this xml, and want to use it with childnodes Label and Tekst, but sofar due to the li and p and image elements no luck. How can i do this in a simple way ??? ?xml version=1.0 encoding=UTF-8? Menu Item LabelAlgemeen/Label Teksta/Tekst

Re: [PHP] xml parsing

2007-03-11 Thread Robert Cummings
set the content of Tekst didn't have a clue and so didn't mark up special entities. As such, the XML has now taken on a mixed structure of XML and HTML. You might have success performing the following before trying to parse: ?php $xml = str_replace( 'Tekst', 'Tekst![CDATA[', $xml ); $xml

Re: [PHP] XML error in browser

2007-01-31 Thread Richard Lynch
Take out the @ symbol. Better to have error output to confuse the XML parser but lead you where you need to go, than to have NO OUTPUT which is what is confusing you *and* the XML parser. On Tue, January 30, 2007 2:34 pm, Skip Evans wrote: Hey all, I have getting the following error page in

[PHP] XML error in browser

2007-01-30 Thread Skip Evans
Hey all, I have getting the following error page in the browser when trying to redirect to an iTunes XML file to open the player. === Cannot view XML input using style sheet. Please correct the error and then click the

Re: [PHP] XML error in browser

2007-01-30 Thread Skip Evans
Hey all, First, any apology. I had put in a filter to place all my list messages into a folder, and did not see Richard Lynch's reply to my earlier post about getting the iTunes player to open up inside PHP. I can see from what he said that my problem below is probably caused by the

[PHP] XML Parsing simpleXML Arrays Question

2007-01-14 Thread Richard Luckhurst
Hi List I have taken the advice of a number of people on the list and am back trying to write my XML parser using SimpleXML. I am having a problem and I believe the problem is my lack of understanding of arrays and simpleXML in spite of much google searching and manual reading. I would appreciate

Re: [PHP] XML Parsing simpleXML Arrays Question

2007-01-14 Thread Jim Lucas
Richard Luckhurst wrote: Hi List I have taken the advice of a number of people on the list and am back trying to write my XML parser using SimpleXML. I am having a problem and I believe the problem is my lack of understanding of arrays and simpleXML in spite of much google searching and manual

[PHP] XML API, libcurl, POST Help Needed

2007-01-07 Thread Richard Luckhurst
Hi List I have been given a rather urgent problem to solve for one of our clients. I have to be able to connect to a server that deals with a section of the travel industry and send and receive XML data. The API is quite poorly written and I am finding it hard to get sense out of the companies

Re: [PHP] XML API, libcurl, POST Help Needed

2007-01-07 Thread Jochem Maas
Richard Luckhurst wrote: Hi List I have been given a rather urgent problem to solve for one of our clients. I have to be able to connect to a server that deals with a section of the travel industry and send and receive XML data. The API is quite poorly written and I am finding it hard to

Re[2]: [PHP] XML API, libcurl, POST Help Needed

2007-01-07 Thread Richard Luckhurst
Hi Jochem, Thanks very much for your help. I now have the application working. Just for anyone elses interest here are a few comments. $length = Content-Length: 502; JM The way I see it your Content-Length is wrong - the JM length of your request in this instance would 380 bytes, JM based on

Re: [PHP] XML parser error ..

2006-11-21 Thread onewaylife
dear Richard I have written a PHP file in that with help of php document tags i have created XML file in that PHP file and in xml file i have taken care of the ?xml ? tag. with regards rakesh Richard Lynch wrote: On Tue, November 21, 2006 2:30 am, onewaylife wrote: the file is : -

[PHP] PHP 5.0.5 and PHP-XML problem

2006-11-10 Thread Edd Dawson
Hi I have a problem getting PHP-XML working with PHP 5.0.5 I am trying to create an DOMDocument object with the following: $doc = new DOMDocument(); when run i get the error: *Fatal error*: Class 'DOMDocument' not found in * /var/www/cinematimes.mobi/feed.php* on line *5 *I looked up

Re: [PHP] PHP 5.0.5 and PHP-XML problem

2006-11-10 Thread Jochem Maas
Edd Dawson wrote: Hi I have a problem getting PHP-XML working with PHP 5.0.5 I had trouble getting anything to work with that version ;-) I suggest trying the version before or after it - seriously 5.0.5 has some issues (although whether your problem is anything to do with them is not known

Re: [PHP] XML Sending problem

2006-11-06 Thread Richard Lynch
On Sun, November 5, 2006 5:28 am, Rosen wrote: I need to create an XML file and send it to another server, where script process the XML. With creation and processing of XML I don't have a promlems, but how I can send XML to the processing script on another server ? Pigeons? It would

[PHP] XML Sending problem

2006-11-05 Thread Rosen
Hi, I need to create an XML file and send it to another server, where script process the XML. With creation and processing of XML I don't have a promlems, but how I can send XML to the processing script on another server ? Thanks in advance, Rosen -- PHP General Mailing List

Re: [PHP] XML Sending problem

2006-11-05 Thread Michal Manko
Hi Rosen, You can do this for some ways. The simplest: 1. Send via ftp - http://php.net/ftp 2. Send via scp using ssh2 - http://php.net/ssh2 Regards Michael Rosen said: Hi, I need to create an XML file and send it to another server, where script process the XML. With creation and processing

Re: [PHP] XML Sending problem

2006-11-05 Thread Rosen
Unknown Sender [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Rosen, You can do this for some ways. The simplest: 1. Send via ftp - http://php.net/ftp 2. Send via scp using ssh2 - http://php.net/ssh2 Regards Michael Thanks Michael, but I want if it is possible to do

Re: [PHP] XML Sending problem

2006-11-05 Thread Stut
Rosen wrote: Unknown Sender [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Rosen, You can do this for some ways. The simplest: 1. Send via ftp - http://php.net/ftp 2. Send via scp using ssh2 - http://php.net/ssh2 Regards Michael Thanks Michael, but I want if it is possible to do

Re: [PHP] XML Sending problem

2006-11-05 Thread Myron Turner
Your question interested me for my own work, so I found this url: http://www.zend.com/zend/spotlight/mimocsumissions.php The script, disentangled from the commentary ( with a few of my own comments) is as follows: function post_it($datastream, $url) { $url = preg_replace(@^http://@i;,

Re: [PHP] xml v php question

2006-08-04 Thread Richard Lynch
On Tue, July 25, 2006 8:33 am, David Tulloh wrote: Larry Garfield wrote: Disable short tags. The correct answer is (b). (PHP 6 won't even have short tags, so get used to not having them.) Can you find anywhere where this was announced? I don't recall seeing any decision on it. A quick

Re: [PHP] xml v php question

2006-07-25 Thread David Tulloh
Larry Garfield wrote: Disable short tags. If short tags are enabled, the PHP parser sees the ? and switches into PHP mode. It then starts parsing the xml and sees that it's not proper PHP, and freaks out. You can: a) Use PHP to print out the XML declaration as a string: ?php

Re: [PHP] xml v php question

2006-07-25 Thread tedd
At 11:01 PM -0500 7/24/06, Larry Garfield wrote: Disable short tags. If short tags are enabled, the PHP parser sees the ? and switches into PHP mode. It then starts parsing the xml and sees that it's not proper PHP, and freaks out. You can: Bingo ! That works : ) Apparently the better

Re: [PHP] xml v php question

2006-07-25 Thread Kevin Waterson
This one time, at band camp, Larry Garfield [EMAIL PROTECTED] wrote: The correct answer is (b). (PHP 6 won't even have short tags, so get used to not having them.) ummm, I think it was decided to stay in php6. I could be mildly/wildly mistaken Kevin -- Democracy is two wolves and a

Re: [PHP] xml v php question

2006-07-25 Thread Larry Garfield
On Tue, July 25, 2006 3:15 pm, Kevin Waterson said: This one time, at band camp, Larry Garfield [EMAIL PROTECTED] wrote: The correct answer is (b). (PHP 6 won't even have short tags, so get used to not having them.) ummm, I think it was decided to stay in php6. I could be mildly/wildly

RE: [PHP] xml v php question

2006-07-25 Thread Jim Moseby
On Tue, July 25, 2006 3:15 pm, Kevin Waterson said: This one time, at band camp, Larry Garfield [EMAIL PROTECTED] wrote: The correct answer is (b). (PHP 6 won't even have short tags, so get used to not having them.) ummm, I think it was decided to stay in php6. I could be

[PHP] xml v php question

2006-07-24 Thread tedd
Hi gang: Why does starting my php script with -- ?xml version=1.0 encoding=utf-8? -- stop it from running? I would like to use php in a page, but the page has to begin with a xml declaration to generate a quirksmode for IE6 and under while permitting IE7 to be left in standards mode.

Re: [PHP] xml v php question

2006-07-24 Thread Larry Garfield
Disable short tags. If short tags are enabled, the PHP parser sees the ? and switches into PHP mode. It then starts parsing the xml and sees that it's not proper PHP, and freaks out. You can: a) Use PHP to print out the XML declaration as a string: ?php print '?xml version=1.0

[PHP] XML

2006-06-26 Thread weetat
Hi all, I am using PHP 4.3.2 in Red Hat Entreprise. I have xml file which have tags as show below: HardwareVersion![CDATA[�ù?¸€ü÷Œ�ú�ù?à�ù?Ø€�Z4À„�Ï]]/HardwareVersion I need to lookup for Hardware Version tag in php ,and edit the value to empty string and save the modified xml

[PHP] xml validation

2006-06-09 Thread weetat
Hi all , Thanks to everbody in this group , really help me a lot. I have a raw xml file from our clients. My question is how to validate the xml file if the file is xml compliance ? Thanks - weetat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] xml validation

2006-06-09 Thread Jay Blanchard
[snip] Thanks to everbody in this group , really help me a lot. I have a raw xml file from our clients. My question is how to validate the xml file if the file is xml compliance ? [/snip] http://www.php.net/xml -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] xml validation

2006-06-09 Thread Brad Bonkoski
This article has some good information about PHP/XML including validation: http://www.zend.com/php5/articles/php5-xmlphp.php -Brad weetat wrote: Hi all , Thanks to everbody in this group , really help me a lot. I have a raw xml file from our clients. My question is how to validate

[PHP] XML-RPC set XML encoding?

2006-05-02 Thread D. Dante Lorenso
XML-RPC gurus, Does anyhow know how to set the character encoding for XML-RPC? I am using the PHP built-in XML-RPC server to handle XML-RPC calls. ?php ... // create the XML-RPC server $this-SERVER = xmlrpc_server_create(); ... // fetch the raw input stream which contains our XML data

Re: [PHP] XML-RPC set XML encoding?

2006-05-02 Thread D. Dante Lorenso
D. Dante Lorenso wrote: Does anyhow know how to set the character encoding for XML-RPC? Ok, after digging through the sources, I figured this one out. There's a 4th parameter to the method: xmlrpc_server_call_method And, the options are all explained on this page:

[PHP] XML Parsing, starting out.

2006-04-29 Thread sinai
Hello, 1st msg here so im excited what results i will get :) Im a novice with php parsing and have been able to help myself quite well with what ive needed with xml_parse_into_struct and then echoing the fixed variable names but now im dealing with an xml document that is 1st quite large and

Re: [PHP] XML Parsing, starting out.

2006-04-29 Thread Richard Lynch
On Sat, April 29, 2006 11:19 am, [EMAIL PROTECTED] wrote: Im a novice with php parsing and have been able to help myself quite well with what ive needed with xml_parse_into_struct and then echoing In an ideal world, you would examine other XML parsing options, such as the PEAR library. If,

Re: [PHP] XML Parsing, starting out.

2006-04-29 Thread Mattias Thorslund
[EMAIL PROTECTED] wrote: Hello, 1st msg here so im excited what results i will get :) Im a novice with php parsing and have been able to help myself quite well with what ive needed with xml_parse_into_struct and then echoing the fixed variable names but now im dealing with an xml document

Re: [PHP] XML Parsing, starting out.

2006-04-29 Thread Ólafur Waage
Mattias Thorslund wrote: [EMAIL PROTECTED] wrote: Hello, 1st msg here so im excited what results i will get :) Im a novice with php parsing and have been able to help myself quite well with what ive needed with xml_parse_into_struct and then echoing the fixed variable names but now im

Re: [PHP] XML Parsing, starting out.

2006-04-29 Thread Gonzalo Monzón
[EMAIL PROTECTED] escribió: Hello, 1st msg here so im excited what results i will get :) Im a novice with php parsing and have been able to help myself quite well with what ive needed with xml_parse_into_struct and then echoing the fixed variable names but now im dealing with an xml document

[PHP] XML its elements

2006-04-11 Thread Mohsen Pahlevanzadeh
Dear all, I need to retrive content of my XML element.my element is translation. translationMY _CONTENT/translation Of course i wanna use PHP4 instead 5. Please help me. Yours,Mohsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] XML its elements

2006-04-11 Thread Jay Blanchard
[snip] I need to retrive content of my XML element.my element is translation. translationMY _CONTENT/translation Of course i wanna use PHP4 instead 5. [/snip] http://www.php.net/xml -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML its elements

2006-04-11 Thread Richard Lynch
On Tue, April 11, 2006 3:25 am, Mohsen Pahlevanzadeh wrote: I need to retrive content of my XML element.my element is translation. translationMY _CONTENT/translation Of course i wanna use PHP4 instead 5. Please help me. Yours,Mohsen There are 3 or 4 different XML parsing engines

Re: [PHP] XML-RPC or SOAP

2006-03-31 Thread Benjamin Adams
I want to take a mysql database that I have and turn it into a wsdl page where I can make a client program connect to. I have read how to do it in Tomcat. but looking for help in using PHP. On Mar 30, 2006, at 9:45 PM, Anthony Ettinger wrote: what about WSDL? On 3/30/06, Russell Jones

[PHP] XML-RPC or SOAP

2006-03-30 Thread Merlin
Hello there, I am at the beginning of creating a web service. As I am not very familar with both SOAP and XML-RPC it would not make much difference in which one I learn. Which one would you guys recommend for a web app that has to be transformed into a white lable solution. Thank you for

Re: [PHP] XML-RPC or SOAP

2006-03-30 Thread Philip Hallstrom
I am at the beginning of creating a web service. As I am not very familar with both SOAP and XML-RPC it would not make much difference in which one I learn. Which one would you guys recommend for a web app that has to be transformed into a white lable solution. I just did one using SOAP.

Re: [PHP] XML-RPC or SOAP

2006-03-30 Thread Russell Jones
I would go with XML-RPC. I currently use XML-RPC to run LinkSleeve - a link-spam detection tool. In my opinion, I have found XML-RPC to be easier to use and understand. If at any point in your product you will be dealing with customers / vendors who will be beginners with both XML-RPC and SOAP, I

Re: [PHP] XML-RPC or SOAP

2006-03-30 Thread Anthony Ettinger
what about WSDL? On 3/30/06, Russell Jones [EMAIL PROTECTED] wrote: I would go with XML-RPC. I currently use XML-RPC to run LinkSleeve - a link-spam detection tool. In my opinion, I have found XML-RPC to be easier to use and understand. If at any point in your product you will be dealing

[PHP] OT? - newbie php/xml/xsl question

2006-03-27 Thread ksmeeks
I know this is off-topic, but I'm hoping someone will share a little php/xml/xsl knowledge with me. I'm trying to (via php 5) to do the following: - load an xml file - load an xsl stylesheet - apply the two, and build a page that contains hyperlinks based on the xml Here's the basics

[PHP] xml-rpc and xml-rpci

2006-02-12 Thread Alex Duggan
Hello, What is the future of the xml-rpc client and server functions in php 5.x? I see the old xml-rpc extension is still marked as expirimental and the newer xml-rpci extention in pecl has not been worked on in 12 months and doesn't have server functionality. I am in the process of porting a

[PHP] XML parsing

2006-02-09 Thread Peter Lauri
Hi, When I go thru this documentation the parsing seem to be very complex. With Java this was not the case. Assume I have XML like this: $xml = 'greetingfromPeter/fromtoThe group/to/greeting'; I would like to get the value of 'from' and 'to'. My dream function would be:

Re: [PHP] XML parsing

2006-02-09 Thread Kim Christensen
On 2/9/06, Peter Lauri [EMAIL PROTECTED] wrote: Or maybe an function that create an array from the XML: $arr = xml_to_array($xml); Any one who can give a really SIMPLE example of this? http://php.net/xml Have you checked the user comments? -- Kim Christensen [EMAIL PROTECTED] -- PHP General

Re: [PHP] XML parsing

2006-02-09 Thread Peter Lauri
: [PHP] XML parsing On 2/9/06, Peter Lauri [EMAIL PROTECTED] wrote: Or maybe an function that create an array from the XML: $arr = xml_to_array($xml); Any one who can give a really SIMPLE example of this? http://php.net/xml Have you checked the user comments

Re: [PHP] XML parsing

2006-02-09 Thread Barry
Peter Lauri wrote: Stupid me :) It has all I need!!! And the opposite way, creating XML, must be even easier. Any function that take an array as input, and returns XML? If not, I just need to create a recursive function that loops thru the array. If there is a standard function I would be

Re: [PHP] XML parsing

2006-02-09 Thread Kim Christensen
On 2/9/06, Peter Lauri [EMAIL PROTECTED] wrote: And the opposite way, creating XML, must be even easier. Any function that take an array as input, and returns XML? If not, I just need to create a recursive function that loops thru the array. If there is a standard function I would be very

Re: [PHP] xml to array

2006-02-05 Thread Tod Thomas
Brian V Bonini wrote: On Fri, 2006-02-03 at 16:23, Richard Lynch wrote: I've got my money on the XML spec REQUIRING an alphabetic start to tagnames, and subsequent characters can be alphanumeric... In other words, it doesn't work because 0 is not a valid XML tag. Yeah, that was my

Re: [PHP] xml to array

2006-02-05 Thread Brian V Bonini
On Sun, 2006-02-05 at 06:32, Tod Thomas wrote: Just a quick shot it the dark... http://www.w3.org/TR/REC-xml/#NT-Name Go up about a half page to this: [Definition: A Name is a token beginning with a letter or one of a few punctuation characters, and continuing with letters, digits,

Re: [PHP] xml to array

2006-02-04 Thread Brian V Bonini
On Fri, 2006-02-03 at 16:23, Richard Lynch wrote: I've got my money on the XML spec REQUIRING an alphabetic start to tagnames, and subsequent characters can be alphanumeric... In other words, it doesn't work because 0 is not a valid XML tag. Yeah, that was my instinct too... Just could not

<    1   2   3   4   5   6   7   8   9   >