Page 1 of 1

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

Posted: Thu Mar 23, 2006 3:44 pm
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]

Posted: Thu Mar 23, 2006 3:56 pm
by feyd
the path to a recommendation would start with how the data is stored or given.

Posted: Thu Mar 23, 2006 4:02 pm
by dreamnet
which way is the best way to create a xml?
1. use dom appendChild()
2. php->mysql

Posted: Thu Mar 23, 2006 4:03 pm
by feyd
where are you creating it?

Posted: Thu Mar 23, 2006 5:29 pm
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?