June 8th, 2006
---------------------------------------------------------------------------------
Result
---------------------------------------------------------------------------------
<item ID="
" refID="
">
<name>
</name>
<adress>
</adress>
</item>
-
J. Smith
Taipei, Taiwan
-
R. Paul
TAIWAN, SA
-
E. Rock
CA, US
-
J. Smith
Taipei, Taiwan
-
R. Paul
TAIWAN, SA
-
E. Rock
CA, US
---------------------------------------------------------------------------------
Result
---------------------------------------------------------------------------------
-
E. Rock
CA, US
-
R. Paul
TAIWAN, SA
-
E. Rock
CA, US
-
J. Smith
Taipei, Taiwan
I think XML is a very simple storage medium that you can save and query in it. But all data is storage as a tree node in the XML. In this case, it can very simple to save hierarchy data structure. But how to handle it you have reference item?
Just use key in your XML code. For more detail please refer the sample as follow:
t1.xslt
<?xml version=”1.0” encoding=”UTF-8”?>
x1.xml
Result
<?xml version=”1.0” encoding=”utf-8”?>