Martin Honnen wrote:
What you have is not even well-formed as only one XML declaration
followed by exactly one root element is allowed.
I don't think it makes much sense to embed an XML schema into an
instance document.
the scenario is: an emdedded device has its server hold
the device config as a dom document inmemory. clients
across network can request device to change its config
by providing xml dom subtree that needs to be changed.
the idea was to send the schema of the subtree (as the
device config is made of small schema docs each referring
to the subtree that could be changed) along with the
server response so the clinets donot have to maintian
a list of schema docs.
from your description it looks like clients across the
nework would have to maintain the schema locally as
the device does not the computing power to serve the
schema docs over network.
any thoughts/comments/suggestions ?
Thanks !
//marc