如何在C#中使用拓扑排序(DFS搜索)对xml元素进行排序 [英] How to sort xml element using topological sorting(DFS search) in C#

查看:179
本文介绍了如何在C#中使用拓扑排序(DFS搜索)对xml元素进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< RecipeCode> 1010121 < /   RecipeCode  >  
< ExistInExport> true < / ExistInExport >
< ExistInScenario> false < / ExistInScenario >
< disabled> true < / 已禁用 >
< RecipeDescription> DryMix PED Sen CAN < / RecipeDescription >
< ; FormulaType> SubComponent < / FormulaType >
< Batch> 1000 < / 批次 >
<组xml:space = 保留 > < / >
< Origin xml:space = 保留 > < / Origin >
< Script> 1000878067 < / 脚本 >
<版本> 17 < / 版本 >

解决方案

从这里开始:处理1.0 - 处理话语 - 深度优先树搜索[求助] [ ^

<RecipeCode>1010121</RecipeCode> 
  <ExistInExport>true</ExistInExport> 
  <ExistInScenario>false</ExistInScenario> 
  <disabled>true</disabled> 
  <RecipeDescription>DryMix PED Sen CAN</RecipeDescription> 
  <FormulaType>SubComponent</FormulaType> 
  <Batch>1000</Batch> 
  <Group xml:space="preserve"></Group> 
  <Origin xml:space="preserve"></Origin> 
  <Script>1000878067</Script> 
  <Version>17</Version> 

解决方案

Start here: Processing 1.0 - Processing Discourse - Depth first tree search [SOLVED][^]


这篇关于如何在C#中使用拓扑排序(DFS搜索)对xml元素进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆