Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hierarchical xml, how to?

Status
Not open for further replies.

giovi2002

Programmer
Aug 22, 2005
47
NL
In order to get a more efficient xml file (with less data) I thought let's make a hierarchical. How can I make a hierarchical file and easily import it into access without a dtd or schema?

Table basicinfor
Name state

Johanna NY
Exis NY
Albert TX

The 'state' has recurring values and could be reflected more efficiently in a hierarchical order

<Basicinfo>
<State>NY
<Name>Johanna</Name>
<Name>Exis</Name
</State>
<State>TX
<Name>Albert</Name>
</State>
</Basicinfo>

But it doesn't work!
 
What are Johanna, Exis and Albert? 'Name' is not very descriptive. Are they places? I would do something like:
Code:
<Basicinfo>
  <State>
    <Name>NY</Name>
    <Place>Johanna</Place>
    <Place>Exis</Place>
  </State>
  <State>
    <Name>TX</Name>
    <Place>Albert</Place>
  </State>
</Basicinfo>

Jon

"I don't regret this, but I both rue and lament it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top