xsd - how to make include element in my own XML schema? -
I have written my own XML schema and a large XML file, which is an example of that schema. Now I want to define the element in my xsd so that the xml file can be made from several small units. How do I do that?
For example, in my file I have
& lt; Item & gt; 2 & lt; / Item & gt;
& lt; Items & gt; 3 & lt; / Item & gt;
& lt; Src = 'foo.xml' & gt;
And the content in foo.xml is:
& lt; Item & gt; 4 & lt; / Item & gt;
& lt; Item & gt; 5 & lt; / Item & gt;
& lt; Items & gt; 6 & lt; / Item & gt;
and together they set the required values to proceed :)
XML is just a data representation and structure format. If you need "Add" -type functionality, then you have to implement it that you can use XML to act on that If you are trying to complete (by editing your original question) a bit more Drb is provided so that we can assist you.
Comments
Post a Comment