kasavbere
kasavbere

Reputation: 6003

How to create extendible xml

How do I create an xml schema such that in the future when there is a need to enter a completely new object, the schema does not need to be edited? I studied through w3schools and other sites -- but nothing.

Upvotes: 0

Views: 73

Answers (1)

Yuval
Yuval

Reputation: 3443

I think you're referring to XML namespaces, which allow you to use prefixes to incorporate tags from different schemas.

The example from the linked page:

<?xml version="1.0"?>
<!-- both namespace prefixes are available throughout -->
<bk:book xmlns:bk='urn:loc.gov:books'
         xmlns:isbn='urn:ISBN:0-395-36341-6'>
    <bk:title>Cheaper by the Dozen</bk:title>
    <isbn:number>1568491379</isbn:number>
</bk:book>

Upvotes: 1

Related Questions