That would get a whole (but empty) element, though. IIRC, you can use XmlNodeReader.ReadStartElement() to read the whole tag, then the XmlNodeReader.Value will contain the contents of the tag.
Note that this is from memory and I don't have time to check right now! I am pretty sure that I've seen and XmlReader give me precisely what you're after, and the above is my best guess at how to get it :) HTH, G. -- Graeme Foster ([EMAIL PROTECTED]) Principal Software Engineer Aston Broadcast Systems Ltd. (http://www.aston.tv) Disclaimer: I really don't have a clue what I'm on about. -----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Marsh, Drew Sent: 18 April 2002 21:41 To: [EMAIL PROTECTED] Subject: Re: Copy XmlNode tag contents Erick Thompson [mailto:[EMAIL PROTECTED]] wrote: > Is there a good way to copy an XmlNode element's tag > contents? What I need to do is take something like <tag > att="one">Some text</tag>, and return <tag att="one"> only. Sure is. Have a look at XmlNode::CloneNode. In your case you want to pass false for the "deep" parameter. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.