[英]C# Get nodes inside CDATA of an xml file
I have an xml file which has a CDATA section, which has again xml data.
我有一个 xml 文件,它有一个 CDATA 部分,它也有 xml 数据。 I would need to get a specific node from the xml within CDATA and create one more node of the same type and save the xml.
我需要从 CDATA 中的 xml 中获取一个特定节点,然后再创建一个相同类型的节点并保存 xml。
The replace and save functionality works for 1 input.替换和保存功能适用于 1 个输入。 but i want the tag to be appended in the same file.
但我希望将标签附加到同一个文件中。 I hope i am clear!
我希望我很清楚!
看看这个线程XML 解析:读取 CDATA您可能需要读取CDATA值,转换,创建节点并将其写回
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.