Re: XML document including another
pete_griffint_at_hotmail.com
Date: 02/09/05
- Next message: Priscilla Walmsley: "Re: XSD Validation Errors of an XML File"
- Previous message: chris yoker via DotNetMonster.com: "Re: loading XML to SQL SERVER error"
- In reply to: Oleg Tkachenko [MVP]: "Re: XML document including another"
- Next in thread: Oleg Tkachenko [MVP]: "Re: XML document including another"
- Reply: Oleg Tkachenko [MVP]: "Re: XML document including another"
- Messages sorted by: [ date ] [ thread ]
Date: 9 Feb 2005 05:50:10 -0800
> That's weird. Could you post minimal repro files? Basically when
reading
> XML using XIncludingReader you should never see xi:include element -
> that's XIncludingReader's job to resolve it to the resource href is
> pointing to. Make sure xi prefix is bound to
> "http://www.w3.org/2001/XInclude" namespace.
I've found the problem - I'd used the (valid!) URI w3c.org not
w3.org... Thanks for taking the time to answer.
I'm still puzzled as to how to make the include file an XML fragment -
if the included file is
<p>...</p>
<p>...</p>
then it complains that only one root is allowed when it hits the second
<p>. I think I might need to pass an XmlParserContext somewhere along
the line, but the MSDN documentation of this class is atrocious. I'll
experiment.
Pete
- Next message: Priscilla Walmsley: "Re: XSD Validation Errors of an XML File"
- Previous message: chris yoker via DotNetMonster.com: "Re: loading XML to SQL SERVER error"
- In reply to: Oleg Tkachenko [MVP]: "Re: XML document including another"
- Next in thread: Oleg Tkachenko [MVP]: "Re: XML document including another"
- Reply: Oleg Tkachenko [MVP]: "Re: XML document including another"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|