AD_DATA
SESSION_INFO
FIRST_NAMEJoe/FIRST_NAME
LAST_NAMEShmoe/LAST_NAME
TEST_KEY
foofoo/foo
barbar/bar
/TEST_KEY
OPTIONS
0DNR/0
1OPT/1
2FOO/2
3BAR/3
4CWS/4
5AVS/5
/OPTIONS
HEIGHT72/HEIGHT
WEIGHT96Kg/WEIGHT
/SESSION_INFO
PAA
logCount0/logCount
etc...
$xml_data = $xml;
$parser =
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.
You'll have to find and read the XML spec to be 100% certain.
http://info.com/XML+specification
If I'm
On Sun, 2006-01-29 at 02:01, Adam Hubscher wrote:
I have a block of XML that looks as follows:
namelt;*_~_*gt; Røyken VGS lt;*_~_*gt;/name
My question is, can I in any way efficiently (i -stress- efficiently, if
anyone read my previous XML and special characters post its a rather
large
Brian V Bonini wrote:
On Sun, 2006-01-29 at 02:01, Adam Hubscher wrote:
I have a block of XML that looks as follows:
namelt;*_~_*gt; Røyken VGS lt;*_~_*gt;/name
My question is, can I in any way efficiently (i -stress- efficiently, if
anyone read my previous XML and special characters
Steve Clay wrote:
Sunday, January 22, 2006, 10:10:54 PM, Adam Hubscher wrote:
ee dee da da da? sect;eth; -- those that look like html entities are
the represented characters. I was mistaken, they are html entities,
Can you show us a small chunk of this XML that throws errors?
You said
I have a block of XML that looks as follows:
namelt;*_~_*gt; Røyken VGS lt;*_~_*gt;/name
Now, if I run that block of XML through htmlentities, I will get the
following:
name*_!_* Røyken VGS *_~_*/name
XML parsers will return a problem, as there is both an unclosed tag and
an invalid tag,
Well, last week or so I noticed that Squirrelmail's session array contained
recursive variable references and caused my serializer to crash on infinite
recursion. Oh well, that's life.
I found the time to add a variable stack for encoding to XML. If a variable
is is_ref or has a refcount greater
I am trying to set up a personal blog of mine with the new
LinkSleeve.orgXML-RPC link spam service, but I dont know the firs
thing about PHP and
XML-RPC.
I did read that there are some problems with security, though, with the
popular PHP XML-RPC classes. Have these been fixed and which would you
I have read recently that there are some issues with XML-RPC and security in
PHP classes. Have these been fixed? What would you recommend? I am looking
to create a LinkSleeve filter for my blog and it requires XML-RPC.
rjonesx
Sunday, January 22, 2006, 10:10:54 PM, Adam Hubscher wrote:
ee dee da da da? sect;eth; -- those that look like html entities are
the represented characters. I was mistaken, they are html entities,
Can you show us a small chunk of this XML that throws errors?
You said you've tried various
I've been having a tough time with parsing XML files and special characters.
I have attempted every applicable engine, last try SAX, to attempt at
parsing a (rather large, 17.8mb) xml file.
The problem I hit, is when it hits a UTF8 encoded character. I've
attempted at decoded the file before
I've been having a tough time with parsing XML files and special characters.
-snip-
Any suggestions as to how I could get around this seemingly
impossible road block thats been placed by what seems to be the xml
engines :O..
Adam:
I believe that these special character will be with us for
tedd wrote:
I've been having a tough time with parsing XML files and special
characters.
-snip-
Any suggestions as to how I could get around this seemingly impossible
road block thats been placed by what seems to be the xml engines :O..
Adam:
I believe that these special character will
Adam Hubscher wrote:
tedd wrote:
I've been having a tough time with parsing XML files and special
characters.
-snip-
Any suggestions as to how I could get around this seemingly
impossible road block thats been placed by what seems to be the xml
engines :O..
Adam:
I believe that these
Hi there,
try this as your first output line:
$this_output = ?xml version=\1.0\
encoding=\.$_XMLCONFIG[enc-type].\?.;
hope that helps...
cheers
björn
Hi, I gotta send an XML request to a server. In the doc it's defined as
follows:
[request]
xs:request xmlns:xs='urn:pinXpressSchema'
Hi, I gotta send an XML request to a server. In the doc it's defined as
follows:
[request]
xs:request xmlns:xs='urn:pinXpressSchema' version='1.5' langCode='en'
DEALERinfo aspName=‘XXX’
dealerName=''
posName='1234'
posPassword='1234'
userName=''
userPassword='1234' /
purchasePINs
One of the problems I have had with the PHP session system is that it does
not use a readily usable text format for serializing data. This makes using
session data outside of PHP virtually impossible.
I looked at the WDDX extension and was not too impressed: it was way too
verbose and didn't use
Hi ALL
My applications requires converting XML file to PDF using PHP. Some surfing on
the net revealed that it has to be first transformed to XSLT and then XSL:FO
and finally to PDF . But i have no idea as where to start from. Confused and
need directions or references to tutorials / resources
Hello, Binay
[...]. But i have no idea as where to start from. Confused and need
directions or references to tutorials / resources which can shade
lights on the inputs required.
[...]
Try out FPDF at www.fpdf.org . It's quite easy to use and it's highly
extendable !!!
HAPPY NEW YEAR !!
If you can't get at the PHP internal time-out...
First, file a bug report Feature Request and ask for it to be
exposed. You won't be the only one who needs it.
Second, for the short term, you may be stuck with rolling your own
XMLRPC interface, or using one of the others out there as raw PHP
the XML, do this:
?php
$xml = file_get_contents(http://news.google.com/?output=rss;) or
die(Unable to read Google RSS at this time. Please try again
later.);
?
If you need to get just the headlines, you could do:
?php
preg_match_all(/title([^]*)\\/title/sU, $xml, $headlines);
var_dump
[EMAIL PROTECTED] wrote:
Is there any easy php script to run to view an xml file such as new
headlines like so: http://news.google.com/?output=rss or can anyone point
me in the right direction for good online tutorials or books.
You can start here:
http://magpierss.sourceforge.net/
Magpie
Hi all,
I'm using Apache/1.3.33 (Unix), PHP/5.0.3, mod_ssl/2.8.22, OpenSSL/0.9.6a.
I wrote a dummy script that is called by a Java program via XML-RPC,
waits for some time and replies the start and end times.
?php
set_time_limit(500);
$xmlServer = xmlrpc_server_create();
function process()
Of course, fflusch($log); should be fflush($log);
I just found out that $xmlResponse really is empty.
However, connection_status() returns 0, so I assume that the script is
not interrupted by a timeout.
Why does xmlrpc_server_call_method($xmlServer, $xmlRequest, NULL) return
nothing if the
Is there any easy php script to run to view an xml file such as new
headlines like so: http://news.google.com/?output=rss or can anyone point
me in the right direction for good online tutorials or books.
Hi,
The PHP Manual entry for xml_parser_set_option lists an option called:
XML_OPTION_SKIP_WHITE. I really couldn't decipher what this option
enables or disables.
The manual entry itself is a bit terse:
Whether to skip values consisting of whitespace characters.
Doodling around with it in code
Amol Hatwar wrote:
Hi,
The PHP Manual entry for xml_parser_set_option lists an option called:
XML_OPTION_SKIP_WHITE. I really couldn't decipher what this option
enables or disables.
The manual entry itself is a bit terse:
Whether to skip values consisting of whitespace characters.
Doodling
Amol,
Pretty sure that it means the white space after a tag. for example:
myName Joe Dempsey/myName
or (even worse, with CR)
myName
Joe Dempsey
/myName
Amol Hatwar wrote:
Hi,
The PHP Manual entry for xml_parser_set_option lists an option called:
XML_OPTION_SKIP_WHITE. I really
I did some easy xml parsing on the last.fm[1] recent tracklist.
I do read in all the tracks and output them encoded with htmlentities().
A lot of german special chars like the Ä (Auml;) are transfered to
strange followings of an A with any sort of available accent. But it
isn't replaced by
On Thu, Dec 01, 2005 at 11:31:45AM -0800, jonathan wrote:
i'm loading a dynamically generated xml file like this:
$xml=new DomDocument();
$xml-load(menu_render.php?menu_id=$menu_idformat=xml);
The problem is that this file is in a directory that requires http
authentication (via the
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 8
months and doesn't have server functionality. I am in the process of
porting a
It was the version of class-IXR.php, there was a small bug in that
library and the fix had just come out, so it was until I went back and
download some updates that it worked.
On 10/22/05, Richard Lynch [EMAIL PROTECTED] wrote:
On Sat, October 22, 2005 10:19 am, Dan McCullough wrote:
I'm
I'm having any issue finding out why this is happening and how to fix
it. Is it a permissions problem between php and the server or
something else?
Help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dan McCullough wrote:
I'm having any issue finding out why this is happening and how to fix
it. Is it a permissions problem between php and the server or
something else?
Help
Without looking up this specific error code thoroughly through Google or
elsewhere, I would have to ask you to submit
Tried Google and the guy who created the snippet they had no helpful
information about the error.
On 10/22/05, Torgny Bjers [EMAIL PROTECTED] wrote:
Dan McCullough wrote:
I'm having any issue finding out why this is happening and how to fix
it. Is it a permissions problem between php and the
On Sat, October 22, 2005 10:19 am, Dan McCullough wrote:
I'm having any issue finding out why this is happening and how to fix
it. Is it a permissions problem between php and the server or
something else?
Help
Go to the command line/shell or even, gak, MS-DOS, and type:
telnet XYZ 32000
hello,
I have some words with german special chars in mysql. When I print those
strings direct as xml to the browser, everything seems fine. But there
is one 'ä' that makes me crazy. It always appears as a ? in Firefox and
even makes an error in ie.
But other 'ä's are ok.
What could I
if we saw some code it would help, also it could be something to do with the
text encoding
On 9/16/05, Joerg P [EMAIL PROTECTED] wrote:
hello,
I have some words with german special chars in mysql. When I print those
strings direct as xml to the browser, everything seems fine. But there
- Original Message -
From: Joerg P [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Friday, September 16, 2005 2:07 PM
Subject: [PHP] xml first special char
hello,
I have some words with german special chars in mysql. When I print those
strings direct as xml to the browser
Free for the taking, here's a simple, lenient (flawed?) xml parse engine
written in php if anyone is interested in expanding such a thing.
http://fribbler.us/code/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Will wrote:
Free for the taking, here's a simple, lenient (flawed?) xml parse engine
written in php if anyone is interested in expanding such a thing.
http://fribbler.us/code/
Not to put down your efforts or anything, but what's wrong with
SimpleXML, DOM XML, XML Reader, XML Parser etc.
Jasper Bryant-Greene wrote:
Will wrote:
Free for the taking, here's a simple, lenient (flawed?) xml parse
engine written in php if anyone is interested in expanding such a thing.
http://fribbler.us/code/
Not to put down your efforts or anything, but what's wrong with
SimpleXML, DOM XML,
Will wrote:
Jasper Bryant-Greene wrote:
Will wrote:
Free for the taking, here's a simple, lenient (flawed?) xml parse
engine written in php if anyone is interested in expanding such a thing.
http://fribbler.us/code/
Not to put down your efforts or anything, but what's wrong with
Anas Mughal wrote:
Could someone please share with me sample code for:
- Adding an XML node to an existing XML document.
http://www.php.net/manual/en/function.domnode-append-child.php
http://www.php.net/manual/en/function.dom-domnode-appendchild.php
- Modifying the value for a given XML
Could someone please share with me sample code for:
- Adding an XML node to an existing XML document.
- Modifying the value for a given XML node in an existing XML document.
Thank you.
--
Anas Mughal
[snip]
Could someone please share with me sample code for:
- Adding an XML node to an existing XML document.
- Modifying the value for a given XML node in an existing XML document.
[/snip]
Have you looked at the documentation?
http://www.php.net/xml
--
PHP General Mailing List
Jay Blanchard wrote:
[snip]
Could someone please share with me sample code for:
- Adding an XML node to an existing XML document.
- Modifying the value for a given XML node in an existing XML document.
[/snip]
Have you looked at the documentation?
hey Jay take it easy on the long words. ;-)
hi all,
i would like to know where i could find more info on xml and working xml with
php.
thanks.
[snip]
i would like to know where i could find more info on xml and working xml
with php.
[/snip]
Start with the manual http://www.php.net/xml
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
use a search engine. if you can't find what you need, then ask. if
you already did this, then state that you already looked and you
found xyz, but xyz isn't telling you what you need to know, which is
specifically blah.
best,
charles
On Jul 6, 2005, at 2:59 PM, Cima wrote:
hi
hi...
i'm playing around with trying to get a better understanding of an app
(www.sitellite.org) it uses templates, which appear to have php/xml/html and
i'm trying to understand it a little better.
is there someone i can talk to who has a few minutes that might be willing
to walk me through
On 27 May 2005, at 14:16, Andy Pieters wrote:
I recently decided to switch to xml for the configuration of our
programs.
I am now looking for a good way to handle that xml data.
Basically, what I am looking for is a functionality where I say
Get tag x with attribute1=y, attribute2=z,...,
Hi all
I recently decided to switch to xml for the configuration of our programs.
I am now looking for a good way to handle that xml data.
Basically, what I am looking for is a functionality where I say
Get tag x with attribute1=y, attribute2=z,..., read its contents and put it in
an
Hi all
I recently decided to switch to xml for the configuration of our programs.
I am now looking for a good way to handle that xml data.
Basically, what I am looking for is a functionality where I say
Get tag x with attribute1=y, attribute2=z,..., read its contents and put it in
an
Hi everybody...
I've been using DOM-XML functions for loading a XML file. When I try load it
con domxml_open_file, it appears a message Call to undefined function:
domxml_open_file().
PHP has been configured with option --with-dom=shared,/usr
--with-xslt=shared,/usr(default install), and
Need to be pointed in the right direction.
xml:
quotes
quote_block
quote_text/quote_text
quote_author/quote_author
/quote_block
quote_block
quote_text/quote_text
quote_author/quote_author
/quote_block
etc...
/quotes
xsl:
xsl:stylesheet version=1.0
Hello
I am developing a PHP-implemented library which would allow a PHP programmer
to write pre-defined data to a database. The library would be able to work
with different database schemas and I need a way to inform the library with
what kind of database schema it has to work with. I thought
Hi NG
I've a question about searching in a xmlfile.
Is there a mehtod to select a xml-node with a specific value?
e.g.
xml
nameabc/name
namedef/name
/xml
and I want search for the node with name abc.
Or is it possible with a xpath definition?
Thanks in advance
Stefan
--
PHP General Mailing
@lists.php.net
Subject: [PHP] XML Select
Hi NG
I've a question about searching in a xmlfile.
Is there a mehtod to select a xml-node with a specific value?
e.g.
xml
nameabc/name
namedef/name
/xml
and I want search for the node with name abc.
Or is it possible with a xpath definition?
Thanks in advance
Burhan Khalid [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Satyam wrote:
This is just an idea I'm (quite unsuccessfully) been working on.
It appears to me that PHP sits between a database and a web browser.
On the database side, something I would love to have is embedded SQL,
This is just an idea I'm (quite unsuccessfully) been working on.
It appears to me that PHP sits between a database and a web browser.
On the database side, something I would love to have is embedded SQL, as it
exists in some other languages such as C (for example, see:
Satyam wrote:
This is just an idea I'm (quite unsuccessfully) been working on.
It appears to me that PHP sits between a database and a web browser.
On the database side, something I would love to have is embedded SQL, as it
exists in some other languages such as C (for example, see:
I'm new to XML. I'm just now learning about XML tags and how an XML
Style Sheet can be used to filter or format the data. Something
missing in my mind is how to submit the XML to the XSLT though. If
the XML page contained a path to the XSLT page, that would make
sense. But I haven't run
Jeremy Reynolds wrote:
I'm new to XML. I'm just now learning about XML tags and how an XML
Style Sheet can be used to filter or format the data. Something
missing in my mind is how to submit the XML to the XSLT though. If
the XML page contained a path to the XSLT page, that would make sense.
It is SOAP. I read tutorial on w3 website. Have one more question:
The data that is exchange in SOAP protocol is encrypted or not?
Thanks
On Mon, 21 Mar 2005 17:32:59 -0800 (PST), Richard Lynch [EMAIL PROTECTED]
wrote:
On Fri, March 18, 2005 11:14 am, Jerry Swanson said:
I create XML file,
I need to use SOAP and I use PHP 5. Do I need to compile PHP with some option?
Thanks
On Fri, 18 Mar 2005 16:03:20 -0500, Jason Barnett
[EMAIL PROTECTED] wrote:
Chris Shiflett wrote:
Jerry Swanson wrote:
I generated XML file. I need to send the file to another server not
through FTP
[snip]
I need to use SOAP and I use PHP 5. Do I need to compile PHP with some
option?
[/snip]
Probably. Have you RTFM on the subject?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, March 18, 2005 11:14 am, Jerry Swanson said:
I create XML file, how to pass the XML file to another server through
HTTP?
Let's try it this way:
What's the other server?
Did you read their FAQ and their documentation?
Here are functions that, depending on what you read on the other
I create XML file, how to pass the XML file to another server through HTTP?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jerry Swanson wrote:
I create XML file, how to pass the XML file to another server through HTTP?
This is similar to asking how to ship a package, only there are even
more options. :-)
What is the other server's API? How are they expecting to be sent the
XML file? HTTP can practically be
I generated XML file. I need to send the file to another server not
through FTP but though HTTP.
On Fri, 18 Mar 2005 14:17:28 -0500, Chris Shiflett [EMAIL PROTECTED] wrote:
Jerry Swanson wrote:
I create XML file, how to pass the XML file to another server through HTTP?
This is similar to
Jerry Swanson wrote:
I generated XML file. I need to send the file to another server not
through FTP but though HTTP.
Yes, I gathered that, but you're not telling us how you're supposed to
send it. For example, when Google first provided their web API, they
didn't say, just send us an XML
Chris Shiflett wrote:
Jerry Swanson wrote:
I generated XML file. I need to send the file to another server not
through FTP but though HTTP.
Yes, I gathered that, but you're not telling us how you're supposed to
send it. For example, when Google first provided their web API, they
didn't
I suppose Jerry was talking about the possibilities, just like the
ways you listed.
And, perhaps Jerry have his own two servers, and wanna build a whole
system in which the servers communicate with ach other via xml doc. In
this case, I think SOAP is a better way for Jerry.
On Fri, 18 Mar 2005
Hello,
What is the best solution for setting up an xml-rpc client with php5?
Are the built in functions still experimental, are the classes from
useful inc better to use? I want to continue using xml-rpc instead of
soap because of it's simplicity and less overhead.
Alex
--
PHP General
On Tue, 2005-03-01 at 21:14, Alex Duggan wrote:
Hello,
What is the best solution for setting up an xml-rpc client with php5?
Are the built in functions still experimental, are the classes from
useful inc better to use? I want to continue using xml-rpc instead of
soap because of it's
Hello
I have compiled my php with --with-xmlrpc option to use xmlrpc server.
Everything works fine, but there is one problem.
Array (indexed from 0):
$array[0]
$array[1]
$array[2]
is changed to xmlrpc 'array' type - thats ok.
Array (with string indexes):
$array['ad']
$array['sd']
$array['rd']
is
Bambero wrote:
Hello
I have compiled my php with --with-xmlrpc option to use xmlrpc server.
Everything works fine, but there is one problem.
Array (indexed from 0):
$array[0]
$array[1]
$array[2]
is changed to xmlrpc 'array' type - thats ok.
Array (with string indexes):
Jones, Douglas 1 wrote:
I'm wondering if anyone knows of a filter that can take data to be wrapped
in XML tags and filter this data encoding any illegal XML characters or,
if they cannot be encoded, remove them. The problem I have is a database
that contains text that must be wrapped in XML.
Hello,
I'm wondering if anyone knows of a filter that can take data to be wrapped in
XML tags and filter this data encoding any illegal XML characters or, if they
cannot be encoded, remove them. The problem I have is a database that contains
text that must be wrapped in XML. Some of this
Jones, Douglas 1 wrote:
I'm wondering if anyone knows of a filter
that can take data to be wrapped in XML tags
and filter this data encoding any illegal XML characters
Have you tried htmlentities()?
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect:
To: Jones, Douglas 1
Cc: php-general@lists.php.net
Subject: Re: [PHP] XML Filters for illegal characters
Jones, Douglas 1 wrote:
I'm wondering if anyone knows of a filter
that can take data to be wrapped in XML tags
and filter this data encoding any illegal XML characters
Have you tried
We are running PHP 4.3.2
Is there a class out there that can validate an xml file against a schema?
I know in PHP 5+ that the dom package includes simple validation
function, but until we upgrade, that's not an option.
Can anybody point me in the write direction?
I want something simple to
On 14.12.2004 6:45 Uhr, Dan Phiffer wrote:
Adam Maccabee Trachtenberg wrote:
This is an XPath FAQ. Without a ns prefix, XPath doesn't choose
elements living in the default ns, but ones living in no namespace.
Are there any good references you might point me to? I'm pretty new to
this stuff and
On Mon, 13 Dec 2004, Dan Phiffer wrote:
I guess what I would expect to work is to allow for blank values as the
first argument to registerNamespace, representing the default namespace,
but that causes the queries to always return no matches. Is there
something I'm missing with this?
This is
Adam Maccabee Trachtenberg wrote:
This is an XPath FAQ. Without a ns prefix, XPath doesn't choose
elements living in the default ns, but ones living in no namespace.
Are there any good references you might point me to? I'm pretty new to
this stuff and beyond my in a Nutshell book don't have many
On Mon, 13 Dec 2004, Dan Phiffer wrote:
Adam Maccabee Trachtenberg wrote:
This is an XPath FAQ. Without a ns prefix, XPath doesn't choose
elements living in the default ns, but ones living in no namespace.
Are there any good references you might point me to? I'm pretty new to
this stuff
Question. I need to get one value out of an xml document.
...
categories
catDesserts/cat/categories
...
what do I need to do?
$xml_parser = xml_parser_create();
xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, true);
xml_set_element_handler($xml_parser, cat, /cat);
Hi php-general-team,
An large XML Downstream over asp should be saved into a xml-file. If I
open the asp website directly (IE6.0). It shows after 15 min a big part
of the xml-stream (like if I would open an xml-file with the browser)
and a failure at the end. I don't know how to save it into
Luc Pascal wrote:
An large XML Downstream over asp should be saved into a xml-file. If I
open the asp website directly (IE6.0). It shows after 15 min a big part
of the xml-stream (like if I would open an xml-file with the browser)
and a failure at the end. I don't know how to save it into
Okie dokieI have to parse an XML file and I continue to RTFM, STFW,
and STFA. So I do this...
/* let's parse! */
if($readXML = fopen(XMLDIR.testRecp.xml, r)){
while($lineXML = fread($readXML, 4096)){
xml_parse($covadParser, $lineXML, feof($readXML));
On Tue, 2004-11-16 at 08:13 -0600, Jay Blanchard wrote:
Okie dokieI have to parse an XML file and I continue to RTFM, STFW,
and STFA. So I do this...
/* let's parse! */
if($readXML = fopen(XMLDIR.testRecp.xml, r)){
while($lineXML = fread($readXML, 4096)){
On Tuesday 16 November 2004 22:13, Jay Blanchard wrote:
I have done ini_set(short_open_tag, 0);
It's probably not settable at runtime. Check manual.
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design Hosting * Internet Intranet
Hello Jay,
Tuesday, November 16, 2004, 2:13:28 PM, you wrote:
JB And when the pareser hits the first line of the XML file ...
JB ?xml version=1.0 encoding=ISO-8859-1?
JB ... it throws an error from xml_get_error_code
JB syntax error
Hard to tell without seeing the XML source, but could it be a
[snip]
?xml version=1.0 encoding=ISO-8859-1?
... it throws an error from xml_get_error_code
Trim your xml file. Whitespace can cause this problem.
[/snip]
I trimmed and chopped to no avail. Argh.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
xml_parser_set_option($this-parser, XML_OPTION_CASE_FOLDING, 0);
xml_parser_set_option($this-parser, XML_OPTION_SKIP_WHITE, 1);
[/snip]
I had those in there as well...here is the first few liners of the XML
source
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE response SYSTEM
[snip]
?xml version=1.0 encoding=ISO-8859-1?
[/snip]
using fread the above line comae out like this(even though I was not
echoing the line, just processing)
?xml version=\1.0\ encoding=\ISO-8859-1\?
...as soon as I added stripslashes the syntax error disappeared and
VIOLA!...xml file
Hello Jay,
Tuesday, November 16, 2004, 3:01:45 PM, you wrote:
JB I had those in there as well...here is the first few liners of the XML
JB source
Does the XML file validate? Maybe post a complete file (or if too long
a URL to one) so we could test it? Would at least narrow down if the
error
Jay Blanchard wrote:
[snip]
?xml version=1.0 encoding=ISO-8859-1?
[/snip]
using fread the above line comae out like this(even though I was not
echoing the line, just processing)
?xml version=\1.0\ encoding=\ISO-8859-1\?
...as soon as I added stripslashes the syntax error disappeared and
On Tue, 2004-11-16 at 08:51 -0600, Jay Blanchard wrote:
[snip]
?xml version=1.0 encoding=ISO-8859-1?
... it throws an error from xml_get_error_code
Trim your xml file. Whitespace can cause this problem.
[/snip]
I trimmed and chopped to no avail. Argh.
Try this snippet which has
201 - 300 of 849 matches
Mail list logo