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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create multiple table using XML

Status
Not open for further replies.

silversaphire9

Programmer
Jun 1, 2010
1
US
Hi All,

I am actually coding in XML and would want to know the way out to create multiple tables in XML (within the same XML). I know that we cannot have multiple root elements. But is there some attribute or property/element that we can use to achieve this. My requirement is to create a header (which would be in say table 1), body (in table 2) and footer (table 3). Now all these tables need to be part of the same XML.

Any help on this topic would be greatly appreciated.

Thanks,
Shadab Khan
 
xml won't know by its own what you mean by table/header/footer. You define them the way you like. If you use public standard/recommendation, you have to say what it is.
 
tsuji, thank you for the suggestion. Your solution looks intuitively good but I tried various combination's without success. I am an XML neophyte. Would you mind inserting your code into my code so I know exactly where you think it should be.

-Ken
 
Xml enforces well-formedness and, on top of it and optionally, some aspects document structure (hence its vocabulary used) via some schemas according to author's aspiration. There is no per-se "table" concept as we recognize in html and xhtml.

In this sense, I would say you're using xhtml. In that case, just like html, you make as many "table" as you like. xhtml table, I google a short while and come up with these links, for instance.
No guarantee of their usefulness and correctness.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top