Skip to Main Content
XML and Related Technologies
book

XML and Related Technologies

by Atul kahate
May 2024
Beginner to intermediate content levelBeginner to intermediate
527 pages
17h 52m
English
Pearson India
Content preview from XML and Related Technologies
XML Syntaxes • 81
As we can see, <CATEGORY> is added as a sub-element to our XML structure. However, there is
another approach to handling this case. We can make category as an attribute of the one of the suitable
elements, for instance, that of the TITLE. This approach is illustrated in Figure 2.38.
<BOOK_DETAILS>
<TITLE category = “…”>
<MAIN_TITLE> </MAIN_TITLE>
<SUB_TITLE> </SUB_TITLE>
</TITLE>
<AUTHOR>
<FIRST_NAME> </FIRST_NAME>
<LAST_NAME> </LAST_NAME>
</AUTHOR>
<PUBLICATION>
<NAME> </NAME>
<WEB_URL> </WEB_URL>
</PUBLICATION>
<OTHER_INFO>
<PRICE> </PRICE>
<EDITION> </EDITION>
<BOOK_WEB_SITE> </BOOK_WEB_SITE>
</OTHER_INFO>
<SHORT_DESC> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XML Schema

XML Schema

Eric van der Vlist
XML in a Nutshell, 3rd Edition

XML in a Nutshell, 3rd Edition

Elliotte Rusty Harold, W. Scott Means
Beginning XML, 5th Edition

Beginning XML, 5th Edition

Danny Ayers, Liam R.E. Quin, Joe Fawcett

Publisher Resources

ISBN: 9781282652262