urgent.xml help needed....

shan_n95

Member
Feb 10, 2008
10,228
81
0
<?xml version="1.0" encoding="UTF-8"?>
<dataroot>
<STUDENT>
<NAME>Shan</NAME>
<AGE>22</AGE>
<SCHOOL>Elakiri</SCHOOL>
</STUDENT>
</dataroot>

where i shud enter the next record.after </student> of after </data root>
 

yrollgayanth

Member
Aug 26, 2008
1,524
113
0
Melbourne, AU
Do it after student. Because <dataroot> is the parent

like this

Code:
<?xml version="1.0" encoding="UTF-8"?>
 <dataroot>
 <STUDENT>
 <NAME>Shan</NAME>
 <AGE>22</AGE>
 <SCHOOL>Elakiri</SCHOOL>
 </STUDENT>

 <STUDENT>
 <NAME>John</NAME>
 <AGE>25</AGE>
 <SCHOOL>Royal</SCHOOL>
 </STUDENT>

 </dataroot>

if you are using a DTD file make sure it is defined properly.
 

nismok

Well-known member
  • Jun 27, 2008
    9,391
    673
    113
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    
    <dataroot>[INDENT] <STUDENT>
    [/INDENT][INDENT][INDENT] <NAME>Shan</NAME>
    <AGE>22</AGE>
    <SCHOOL>Elakiri</SCHOOL>
    [/INDENT][/INDENT][INDENT] </STUDENT>
    
    <STUDENT>
    [INDENT] <NAME>Tester</NAME>
    <AGE>21</AGE>
    <SCHOOL>Testing</SCHOOL>
    [/INDENT] </STUDENT>
    [/INDENT]</dataroot>
    <STUDENT> - Table
    <NAME> - Field
     

    shan_n95

    Member
    Feb 10, 2008
    10,228
    81
    0
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    
    <dataroot>[INDENT] <STUDENT>
    [/INDENT][INDENT][INDENT] <NAME>Shan</NAME>
    <AGE>22</AGE>
    <SCHOOL>Elakiri</SCHOOL>
    [/INDENT][/INDENT][INDENT] </STUDENT>
    
    <STUDENT>
    [INDENT] <NAME>Tester</NAME>
    <AGE>21</AGE>
    <SCHOOL>Testing</SCHOOL>
    [/INDENT] </STUDENT>
    [/INDENT]</dataroot>

    tnx again machn;)
     

    shan_n95

    Member
    Feb 10, 2008
    10,228
    81
    0
    Do it after student. Because <dataroot> is the parent

    like this

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
     <dataroot>
     <STUDENT>
     <NAME>Shan</NAME>
     <AGE>22</AGE>
     <SCHOOL>Elakiri</SCHOOL>
     </STUDENT>
    
     <STUDENT>
     <NAME>John</NAME>
     <AGE>25</AGE>
     <SCHOOL>Royal</SCHOOL>
     </STUDENT>
    
     </dataroot>

    if you are using a DTD file make sure it is defined properly.

    tnx machn...wht do you mean by dtd...i just need only to implement some tables by using xml for ms access for my assignment. is there any other way to convert an access table to xml automtcly
     

    yrollgayanth

    Member
    Aug 26, 2008
    1,524
    113
    0
    Melbourne, AU
    tnx machn...wht do you mean by dtd...i just need only to implement some tables by using xml for ms access for my assignment. is there any other way to convert an access table to xml automtcly

    DTD is the Document Type Definition where u define the rules for the xml file. If this is not related to your matter ignore it