如何在C#中使用XDocument从Xml文件中读取<?Insert-Table ID="hebz-9780192893512-chapter-1-tableGroup-1"?>标签

问题描述 投票:0回答:1

在 xml 文件中,标签以 reading xml file tags

开头

如何读取xml标签 我使用 System.Xml.Linq.XDocument 来读取 xml 文件。我无法读取标签如何读取此标签。我用过XDocument

xml linq-to-xml
1个回答
0
投票

这些“标签”称为处理指令,在 Linq 中它们使用

XProcessingInstruction
类表示。

© www.soinside.com 2019 - 2024. All rights reserved.