In XML, what are the nodes with question marks called, and how do I add them in C#?

前端 未结 3 1325
囚心锁ツ
囚心锁ツ 2021-02-19 06:12

Here\'s an example of an XML file created in InfoPath:

  
  

        
3条回答
  •  春和景丽
    2021-02-19 06:45

    Those are called processing instructions. You can use the XmlProcessingInstruction class to interact with them in an XmlDocument.

    As with most elements defined within an XmlDocument, you cannot instantiate it directly; you must use the appropriate factory method on XmlDocument (CreateProcessingInstruction in that particular case.)

提交回复
热议问题