Bernhard Jungk wrote:
> > The above can easily be expressed in a schema that allows the root
> > element to contain any-namespace-elements, so why don't you want to
> > do
> >
> > it? Or is it important that your root element itself has an
> > arbitrary name?
>
> Yes, I think, this is important.
>
> What I want to do, is to serialize a part of a tree and send the file
> over the network. The receiving application will parse and validate
> the file and then insert the result into its own tree.
At which side appears your problem? Is it at the point of extracting
partial xml content (sender), or at the other end eliminating the
transport envelope (receiver)?
In any case, you use a sax parser (I guess, because the dom parser would
be overskill). But with a sax parser, it is easy to ignore the specific
validation error caused by the root tag (just plug in your own error
handler).
Cheers,
Axel
--
Humboldt-Universität zu Berlin
Institut für Informatik
Signalverarbeitung und Mustererkennung
Dipl.-Inf. Axel Weiß
Rudower Chaussee 25
12489 Berlin-Adlershof
+49-30-2093-3050
** www.freesp.de **
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]