Hi everyone,
Can someone please give me some advice? I have never wrote a xml file before and would like to know what nodes i should use.
My xml file will contain 0, 1 or more actions, 0 or 1 comments, 0 or 1 locations.
Each action will have a name, date and time.
Each comment will just have text.
Each location will just have text.
Should i use a format like this??
<root>
<actions>
<action>something here</action>
<action>something here</action>
<action>something here</action>
<actions/>
<comments>
<comment>something here</comment>
<comments/>
<locations>
<location>something here</location>
<locations/>
<root/>
or should i use this?
<root>
<action>something here</action>
<action>something here</action>
<action>something here</action>
<comment>something here</comment>
<location>something here</location>
<root/>
I am not sure when and where to use child nodes, or whether you have too.
Also are there any articles on easy ways to read, add and update xml. I am storing this xml within a database field, so it is NOT coming from a file.
Thank you everyone in advance.
Can someone please give me some advice? I have never wrote a xml file before and would like to know what nodes i should use.
My xml file will contain 0, 1 or more actions, 0 or 1 comments, 0 or 1 locations.
Each action will have a name, date and time.
Each comment will just have text.
Each location will just have text.
Should i use a format like this??
<root>
<actions>
<action>something here</action>
<action>something here</action>
<action>something here</action>
<actions/>
<comments>
<comment>something here</comment>
<comments/>
<locations>
<location>something here</location>
<locations/>
<root/>
or should i use this?
<root>
<action>something here</action>
<action>something here</action>
<action>something here</action>
<comment>something here</comment>
<location>something here</location>
<root/>
I am not sure when and where to use child nodes, or whether you have too.
Also are there any articles on easy ways to read, add and update xml. I am storing this xml within a database field, so it is NOT coming from a file.
Thank you everyone in advance.