How to create extendible xml

Go To StackoverFlow.com

0

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.

2012-04-04 20:38
by kasavbere


1

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>
2012-04-04 20:40
by Yuval
Thanks for the quick reply. I will look into it and let you know - kasavbere 2012-04-04 20:42
Thanks for the link - kasavbere 2012-04-04 20:58
Ads