If i use your script like this:
$xml = '?xml version=1.0?
response
ticketID1197027955_8310/ticketID
statusOK/status
errCode200/errCode
errMsg/errMsg
/response';
$obj = new DOMDocument();
$obj-loadXML( $xml );
echo print_r( $obj, true );
echo $obj-saveXML() . PHP_EOL;
The first statement
On Dec 11, 2007 3:52 AM, Dani Castaños [EMAIL PROTECTED] wrote:
If i use your script like this:
$xml = '?xml version=1.0?
response
ticketID1197027955_8310/ticketID
statusOK/status
errCode200/errCode
errMsg/errMsg
/response';
$obj = new DOMDocument();
$obj-loadXML( $xml );
echo
that is expected behavior. some of the internal classes dont define
any member variables that the php language has access to. obviously
they are storing data internally, said variables just arent accessible as
member variables of the class thats being defined.
Ok! Thank you for this info...
Hi Nathan!
Thank you for all your help!
Problem has been fixed...
The thing is, when request is sent, there is a little difference in what
i get... I get ?xml version=\1.0\ and so on...
These backslashes make the loadXML not load data properly... I've put an
str_replace and the problem has
Dani Castaños wrote:
Hi Nathan!
Thank you for all your help!
Problem has been fixed...
The thing is, when request is sent, there is a little difference in what
i get... I get ?xml version=\1.0\ and so on...
These backslashes make the loadXML not load data properly... I've put an
On Dec 10, 2007 4:48 AM, Dani Castaños [EMAIL PROTECTED] wrote:
Hi list!
I have a problem with DOMDocument loadXML method. I used Windows to
develop my applications, and nothing happens on it when i do something
like
$xml = new DOMDocument();
$xml-loadXML( $request );
Obviously, request
I've checked $request previously and is not empty... it has something like:
?xml version=1.0?
response
ticketID1197026188_ec76/ticketID
statusKO/status
errCode500/errCode
errMsgInternal Server Error/errMsg
/response
The curious thing is that I've built this xml string with DOMDocument in
On Dec 10, 2007 11:40 AM, Dani Castaños [EMAIL PROTECTED] wrote:
I've checked $request previously and is not empty... it has something
like:
?xml version=1.0?
response
ticketID1197026188_ec76/ticketID
statusKO/status
errCode500/errCode
errMsgInternal Server Error/errMsg
/response
Yep, it works when i do saveXML, but not on loadXML step...
The thing is... i'm trying to do something like this:
$request = $_POST['xml'];
$logger-debug( 'New ticket request' );
/**
* Parse XML request to obtain values
*/
$xml = new DOMDocument();
//$xml-validateOnParse = true;
$xml-loadXML(
On Dec 10, 2007 12:08 PM, Dani Castaños [EMAIL PROTECTED] wrote:
Yep, it works when i do saveXML, but not on loadXML step...
did the loadXML() method work in the test script i sent over in my last
post?
if it does then something else is going on when loadXML() is called in the
context
of your
@lists.php.net
Subject: Re: [PHP] LoadXML trouble
On Dec 10, 2007 12:08 PM, Dani Castaños
[EMAIL PROTECTED] wrote:
Yep, it works when i do saveXML, but not on loadXML step...
did the loadXML() method work in the test script i sent over
in my last post?
if it does then something else is going
11 matches
Mail list logo