Graeme Foster [mailto:[EMAIL PROTECTED]] wrote:
> That would get a whole (but empty) element, though.
That's actually what he wanted... at least that's the way I interpreted it.
He said:
> > What I
> > need to do is take something like Some
> text, and
> > return only.
So, from what I can tel
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
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 att="one">Some text, and return only.
Sure is. Have a look at XmlNode::CloneNode. In your case you want to pass
false for the "deep" para
Is there a good way to copy an XmlNode element's tag contents? What I need
to do is take something like Some text, and return only.
At the moment, I creating a stringbuilder, and then looping through the
attributes, but this seems error prone. Is there a built in way to do this?
StringBuilder s