473,385 Members | 1,888 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,385 software developers and data experts.

problem with xml file creation.

dizyn
9
I want to create an xml using php and i want to save hashed password in it, Please tell me simplest way to do so.


Fatal error: Call to undefined function new_xmldoc() in c:\wamp\www\test\z1.php on line 2
aboved mentioned error happend with i used this code for xml file creation.

Expand|Select|Wrap|Line Numbers
  1. <?
  2. $doc = new_xmldoc('1.0');
  3. $root = $doc->add_root('members');
  4. $member = $root->new_child('member','');
  5.  
  6. $member->new_child('lastName','John');
  7. $member->new_child('firstName','Adams');
  8. $member->new_child('contribution','3400');
  9.  
  10. $member = $root->new_child('member','');
  11.  
  12. $member->new_child('lastName','Debra');
  13. $member->new_child('firstName','Hones');
  14. $member->new_child('contribution','2400');
  15.  
  16. $member = $root->new_child('member','');
  17.  
  18. $member->new_child('lastName','Jake');
  19. $member->new_child('firstName','Tudor');
  20. $member->new_child('contribution','1200');
  21.  
  22. $fp = @fopen('members.xml','w');
  23. if(!$fp) {
  24.     die('Error cannot create XML file');
  25. }
  26. fwrite($fp,$doc->dumpmem());
  27. fclose($fp);
  28. ?>
Thanks.
Jun 17 '06 #1
1 4364
Banfa
9,065 Expert Mod 8TB
Expand|Select|Wrap|Line Numbers
  1. <?
  2. $doc = new_xmldoc('1.0');
  3. ...
  4. ?>
I think you might mean

Expand|Select|Wrap|Line Numbers
  1. <?
  2. $doc = new xmldoc('1.0');
  3. ...
  4. ?>
Jun 17 '06 #2

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

Similar topics

0
by: A. Fuentes | last post by:
Fellow Oracle Netters: I have the following problem: Enviroment: Oracle9i/AIX5.2/Veritas vxvm I am trying to create an Oracle database using RAW devices UNDER the Veritas vxvm.(Veritas...
0
by: Stephen Gray | last post by:
Hello. Apologies if this is the wrong forum but I have a problem with a new installation of mysql on Windows XP professional. Having installed via the instructions when I try to start the...
2
by: Charlie Kunkel | last post by:
I need help. I have a directory I'm watching for creation of .TIF files, whereupon creation, I need to launch a process (command line exe) that converts the TIF file to a postscript file. (using...
3
by: SK | last post by:
I have a file. i get the creation time using File.GetCreationTime. then i go and delete that file. and then create it again and print the File.GetCreationTime. It is giving me the old creation...
12
by: Riley DeWiley | last post by:
I have a project that is using a Jet backend and having trouble with Jet's tendency to bloat it's MDB file. I can compact it but it is a hassle. I am considering switching to a Fox backend but have...
8
by: Eddie Suey | last post by:
I want to add a new line to the begining of a text file. I dont want to write over existing data. How do I do this? the file is about 7 mb.
6
by: ged | last post by:
Hi, i am a oo (c#) programmer, and have not used javascript for a while and i cant work out how javascript manages its references. Object References work for simple stuff, but once i have an...
5
by: Michael Rudolph | last post by:
Hi newsgroup, I have an issue with the configuration of a DB2 federated database (WebSphere Information Integrator) in conjunction with the relational wrapper for Oracle on AIX. DB2 seems to not...
0
by: Steve Moreno | last post by:
I have an ASP.NET app that writes an Excel file out to a subdirectory within the root web and then emails it out as an attachment. If I have the <identity impersonate="true"/string in the...
1
by: mitrofun63 | last post by:
Hi, All I have trouble with db2 instance creation (DB2 9.1.2 on AIX 5.3) When i run command for instance creation : ../db2icrt -a SERVER -p 50000 -s ese -u db2fenc1 db2inst1 a reciveve...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.