Click here to Skip to main content
15,915,324 members

Comments by VonBryant (Top 5 by date)

VonBryant 21-Mar-12 9:58am View    
Thank you so much for your help!
VonBryant 20-Mar-12 15:46pm View    
I just realized that in my output example it should be tocEntry not Entry (from what my code has). That is what I get for trying to hurry!
VonBryant 20-Mar-12 15:45pm View    
Well, the root element is named "toc" so the code for that (which I didn't include) looks like this:
XmlElement root = doc.CreateElement("toc");
doc.AppendChild(root);
VonBryant 20-Mar-12 14:01pm View    
I suppose that I might could use streamwriter, but the source file is 1000's of lines, and I think it might get confusing trying to figure out when to close the child tags and which one is a sibling of which, parent of which, etc. This is a very small sample of the input and output. To avoid confusion and keep the relationships straight I was trying to use XPath.
VonBryant 20-Mar-12 14:00pm View    
Deleted
I suppose that I might could use streamwriter, but the source file is 1000's of lines, and I think it might get confusing trying to figure out when to close the child tags and which one is a sibling of which, parent of which, etc. This is a very small sample of the input and output. To avoid confusion and keep the relationships straight I was trying to use XPath.