it's all 1 big string
i just want the string in the "t:Span Text=" tag
ya, i just want that 1 string everything else is style info
right now i'm pretty much reading until i run into
Code
<t:Span Text="
starting the read after it and going until
Code
" />
but i had seen you do some cool xpath work in the past and thought there might be a better way than a character scan to get this one string. parsing out the entire thing might be a bit of overkill though
i tried to do something like this example from msdn but i couldnt get it to work out
Code
// Load the document and set the root element.
XmlDocument doc = new XmlDocument();
doc.Load("bookstore.xml");
XmlNode root = doc.DocumentElement;
// Add the namespace.
XmlNamespaceManager nsmgr = new XmlNamespaceManager(doc.NameTable);
nsmgr.AddNamespace("bk", "urn:newbooks-schema");
// Select and display the first node in which the author's
// last name is Kingsolver.
XmlNode node = root.SelectSingleNode(
"descendant::bk:book[bk:author/bk:last-name='Kingsolver']", nsmgr);
Console.WriteLine(node.InnerXml);
but i couldnt figure out how to get the XmlNode to work
Code
XPathException: 'descendant::t:Span Text' has an invalid token.
Code
XmlNode node = root.SelectSingleNode(
"descendant::t:Span Text",nsmgr);