私は System.Xml.Linq;
xmlドキュメントからXpathを照合するために使用しました。XElement
とSaveOptions
両方がから取得しSystem.Xml.Linq;
ます。
XmlNamespaceManager nsmgr = new XmlNamespaceManager(new NameTable());
nsmgr.AddNamespace("ns", "http://schemas.microsoft.com/office/infopath/2003/myXSD/2012-02-03T16:54:46");
XElement docRfsid = XElement.Parse(content);
//if (docRfsid.XPathSelectElement("//ns:RFSID", nsmgr).Value != null)
if (Regex.Match(docRfsid.ToString(), "RFSID", RegexOptions.IgnoreCase).Success)
{
projData.RfsId = docRfsid.XPathSelectElement("//ns:RFSID", nsmgr).Value.ToString();
}
XElement doc_Financial = XElement.Parse(content);
string resultFinancial = doc_Financial.XPathSelectElement("//ns:Financial", nsmgr).ToString(SaveOptions.DisableFormatting);
System.Xml.Linq;
.net Framework 2.0のみを使用する必要があるため、dllを削除したいだけです。私が使用できる他の選択肢はありますかSystem.Xml.Linq;
?