what's your idea to use php+mysql get this kind of out put

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dreamnet
Forum Newbie
Posts: 9
Joined: Tue Mar 14, 2006 6:43 pm

what's your idea to use php+mysql get this kind of out put

Post by dreamnet »

feyd | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


[b]there might be more than one leaves for each element[/b]

Code: Select all

- <general>
- <title>
  <langstring xml:lang="en">Human Resource Management</langstring> 
  </title>
- <catalogentry>
  <catalog>URI</catalog> 
- <entry>
  <langstring xml:lang="en">http://mydomain/certfs.html</langstring> 
  </entry>
  </catalogentry>
- <catalogentry>
  <catalog>POOL</catalog> 
- <entry>
  <langstring xml:lang="en">000SamplePoolRefernece#</langstring> 
  </entry>
  </catalogentry>
- <description>
  <langstring xml:lang="en">content</langstring> 
  </description>
  </general>

feyd | Please use

Code: Select all

and

Code: Select all

tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

the path to a recommendation would start with how the data is stored or given.
dreamnet
Forum Newbie
Posts: 9
Joined: Tue Mar 14, 2006 6:43 pm

Post by dreamnet »

which way is the best way to create a xml?
1. use dom appendChild()
2. php->mysql
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

where are you creating it?
dreamnet
Forum Newbie
Posts: 9
Joined: Tue Mar 14, 2006 6:43 pm

Post by dreamnet »

I am going to create a xml file with around 80 elements
each element might get more than 0 node
I am not quite familiar with dom, that's why I want to create it by php+mysql
but I don't have any idea to create the structure of DB if i use mysql

and also I 'd like to know if dom is the best way to do this kind of job?
Post Reply