Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: load into XmlDocument form XPathDOcument

From: "Jack Fox" <jackfox@--.------.--->
To: NULL
Date: 9/1/2004 12:06:00 AM
My apologies for the previous 2 postings.

Both solutions work flawlessly.


"Jack Fox" <jackfox@i...> wrote in message
news:RFRYc.3259$w%6.2256@n......
> Well...XSL didn't work either. Apparently omitting the "xml" tag at the
> start of a document impares the navigator, although I can still completely
> load the document into either XPathDocument or XmlDocument.
>
>
> "Jack Fox" <jackfox@i...> wrote in message
> news:XmRYc.3350$8d1.1571@n......
> > Looks like there is a bug in XPathNavigatorReader. I tried both
> > ReadFragmentXml and ReadInnerXml. On more complex xml trees it
apparently
> > failed to read the entire tree, but I haven't fully debugged it. (I
think
> my
> > xmls are missing the usual opening xml tag, but both XmlDocument and
> > XPathDocument have been able to load them without problem.)
> >
> > I guess I will have to learn enough XSL to copy a source tree into a
> result
> > tree as same.
> >
> >
> > "Oleg Tkachenko [MVP]" <oleg@NO!SPAM!PLEASEtkachenko.com> wrote in
message
> > news:%23mlivAmjEHA.156@T......
> > > Jack Fox wrote:
> > >
> > > > Is there an easy way to load an entire XPathDocument into a new
> > XmlDocument?
> > > >
> > > > The best I can come up with is to learn enough XSL to write verbatim
> > from
> > > > the XPathDocument into some sort of writer, then use some sort of
> reader
> > to
> > > > load the XmlDocument.
> > > >
> > > > (Yeah, this sounds like a backasswards requirement, but the
> > XPathDocument is
> > > > already at hand, and short of being an XSL whiz, there are some
things
> > which
> > > > are just easier to do with an XmlDocument.)
> > >
> > > The most efficient way is to use XPathNavigatorReader to read
> > > XPathDocument (via XPathNavigator) into XmlDocument.
> > > XPathNavigatorReader is part of Mvp.Xml library [1].
> > >
> > > [1] http://sourceforge.net/projects/mvp-xml/
> > > -- 
> > > Oleg Tkachenko [XML MVP]
> > > http://blog.tkachenko.com
> >
> >
>
>




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent