473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

how to parse an xml string as a post message

hi all,

i want to parse an xml string on the processing page.

now the simplexml module is not loaded on the server and i cannot edit that.. what other methods can i parse that xml string.

Regards,

Anubhav Jha
Aug 6 '08 #1
6 2167
Atli
5,058 Expert 4TB
You could use DOM. (specifically the DOMDocument::loadXML method)

It's a part of the PHP core so it should be available on most PHP hosts.
Aug 7 '08 #2
You could use DOM. (specifically the DOMDocument::loadXML method)

It's a part of the PHP core so it should be available on most PHP hosts.
I tried using it but I get Call to undefined function domxml_open_mem() message.

can you please let me know how to troubleshoot it..
Aug 8 '08 #3
Atli
5,058 Expert 4TB
If you are using PHP4, then this would have to use the DOM XML extension, rather then the PHP5 DOM objects (which won't work on PHP4).
The DOM XML extension is not included by default in PHP4. It has to be installed.

If that is the case, I would suggest upgrading to PHP5. If you are using a hosting service, odds are that they can upgrade you to PHP5 if you ask. If they can't, I would get as far away from that service as possible, as soon as possible.
Aug 8 '08 #4
If you are using PHP4, then this would have to use the DOM XML extension, rather then the PHP5 DOM objects (which won't work on PHP4).
The DOM XML extension is not included by default in PHP4. It has to be installed.

If that is the case, I would suggest upgrading to PHP5. If you are using a hosting service, odds are that they can upgrade you to PHP5 if you ask. If they can't, I would get as far away from that service as possible, as soon as possible.
Hi Atli, i am using version 5.0 of the PHP on wamp
Aug 11 '08 #5
Atli
5,058 Expert 4TB
Hi Atli, i am using version 5.0 of the PHP on wamp
Strange.
The domxml_open_mem function is a part of the DOM XML extension, which was an experimental part of PHP4.
It was replaced by the DOM extension in PHP5, which shouldn't be calling any DOM XML functions.

What is the exact code you are using?

Try updating your PHP. On windows that should be as simple as downloading the latest zip package and replacing the old installation with it's contents.
The installer package would probably work to.

Make sure you back up your old one tho in case something goes wrong.
Aug 11 '08 #6
I tried doing that but it failed.

I will let you know my problem may be you guys can help me

this is the xml data "ticketxml" which goes as a hidden field.

<input type="hidden" name="ticketxml" id="ticketxml" >

on the processing page I am capturing it as

$ticketxml=$_POST['ticketxml'];

I do not get how to parse it from here without using simplexml function.
Aug 26 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Matt Schroeder | last post by:
I'm a newbie and I can't figure out what this error means: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/easilyta/public_html/pub/user.php on line 190....
1
by: fowlertrainer | last post by:
Hi ! Sorry, but zope@zope.org is not send mails to me... So I trying with that list... 1.) I want to use query-string, and post datas in combined dictionary. I have a page that I must...
21
by: William Stacey [MVP] | last post by:
Anyone know of some library that will parse files like following: options { directory "/etc"; allow-query { any; }; // This is the default recursion no; listen-on { 192.168.0.225;...
5
AdrianH
by: AdrianH | last post by:
Assumptions I am assuming that you know or are capable of looking up the functions I am to describe here and have some remedial understanding of C++ programming. FYI Although I have called...
1
AdrianH
by: AdrianH | last post by:
Assumptions I am assuming that you know or are capable of looking up the functions I am to describe here and have some remedial understanding of C programming. FYI Although I have called this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.