January 18, 2004

The Name Of The Beast

Somehow many believe it's impossible to get OuterXml/InnerXml out of XPathNavigator, but in fact it's merely one-screen-of-code class. And by the way, in System.Xml v2 XPathDocument2 class does have such properties already.

So I've written a small class, which exposes this omitted functionality. It's lightweight wrapper around XPathNavigator, which adds two more properties - OuterXml and InnerXml along with two more methods - WriteTo(XmlWriter) and WriteContentTo(XmlWriter).
Now the question is how to name such class. All names I came up - WritableXPathNavigator, SerializableXPathNavigator or even XPathNavigatorWriter sound too confusing. I'm asking for community help here, any ideas, please guys.

January 18, 2004 12:15 PM | #XML in .NET
Comments

It's too loud name for one-screen-of-code class :)
And it's not really XmlDocument, but only OuterXml/InnerXml strings.

Btw, afaik XmlNavigator was the first name of XPathNavigator, probably Dare should know this story better.

Posted by: Oleg Tkachenko at January 20, 2004 10:49 PM

How about XmlNavigator? After all it's a navigator but exposes Xml like the XmlDocument ;)

Posted by: kzuAT@NOaspnet2SPAM.com (Daniel Cazzulino) at January 20, 2004 10:43 PM

Well, but it's not writer. It's XPathNavigator.
Seems like I'm confusing myself. Anyway, I'm going to name it WritableXPathNavigator.

Posted by: Oleg Tkachenko at January 20, 2004 3:32 PM

XPathNavWriter or XPathNodeWriter

Posted by: Pin at January 20, 2004 12:47 AM
Post a comment




Remember Me?