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
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.
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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,
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
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
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
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
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
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' .
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'.
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
. 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
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
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
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
[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
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,
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 : -
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
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
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
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
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
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
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
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;,
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
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
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
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
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
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
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.
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
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
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:
[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:
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
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
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:
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
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,
[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
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
[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
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
[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
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
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
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
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.
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
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
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
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
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:
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
: [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
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
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
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
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,
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
101 - 200 of 849 matches
Mail list logo