如何使用XML设计页面 [英] How to design page using XML
问题描述
我的XML代码如下
?xml version =1.0?>
- < root>
- < Role Name =CONSLT>
< Category Name =EMRGeneral =NoSitemap =YesSubCat =No SeqNo =10描述=其他>
< Screen Name =Photo CapturePath =../../ Registration / PhotoCapture / PhotoCapture.aspxSeqNo =1ID =照片1\" > < Access_Rights AllowDelete =falseAllowModify =falseAllowAdd =falseAllowQuery =false/>
< Screen Name =ServiceCallsPath =../../ HMSServiceCalls / HMSServiceCalls / HMSServiceCalls.aspxSeqNo =6ID =ServiceCalls> < Access_Rights AllowDelete =FalseAllowModify =FalseAllowAdd =TrueAllowQuery =True/>
屏幕名称=HelpVideosPath =../../ HMSServiceCalls / HelpVideos / HelpVideos.aspxSeqNo = 7ID =HelpVideos> < Access_Rights AllowDelete =FalseAllowModify =FalseAllowAdd =TrueAllowQuery =True/>
如何使用visual studio将上面的xml代码转换为aspx页面。
我有什么试过:
我有以下XML代码
?xml version = ? 1.0 >
- < root>
- < Role Name =CONSLT>
< Category Name =EMRGeneral =NoSitemap =YesSubCat =NoSeqNo =10Desc =Others>
< Screen Name =Photo CapturePath =../../ Registration / PhotoCapture / PhotoCapture.aspxSeqNo =1ID =PHOTO1> < Access_Rights AllowDelete =falseAllowModify =falseAllowAdd =falseAllowQuery =false/>
< / Screen>
< Screen Name =ServiceCallsPath =../../ HMSServiceCalls / HMSServiceCalls / HMSServiceCalls.aspxSeqNo =6ID =ServiceCalls> < Access_Rights AllowDelete =FalseAllowModify =FalseAllowAdd =TrueAllowQuery =True/>
< / Screen>
屏幕名称=HelpVideosPath =../../ HMSServiceCalls / HelpVideos / HelpVideos.aspxSeqNo =7ID =HelpVideos> < Access_Rights AllowDelete =FalseAllowModify =FalseAllowAdd =TrueAllowQuery =True/>
< / Screen>
< / Category>
< / Role>
< / root>
如何使用visual studio将上述xml代码转换为aspx页面。
VS无法知道如何将XML转换/转换为HTML,因为没有通用规则...
有一个XSLT选项可供您使用,甚至可以调试在VS ...
您可以使用此列表统计:
Visual Studio中的XML工具 [ ^ ]
i have XML code as follows
?xml version="1.0"?>
-<root>
-<Role Name="CONSLT">
<Category Name="EMR" General="No" Sitemap="Yes" SubCat="No" SeqNo="10" Desc="Others">
<Screen Name="Photo Capture" Path="../../Registration/PhotoCapture/PhotoCapture.aspx" SeqNo="1" ID="PHOTO1"> <Access_Rights AllowDelete="false" AllowModify="false" AllowAdd="false" AllowQuery="false"/>
<Screen Name="ServiceCalls" Path="../../HMSServiceCalls/HMSServiceCalls/HMSServiceCalls.aspx" SeqNo="6" ID="ServiceCalls"> <Access_Rights AllowDelete="False" AllowModify="False" AllowAdd="True" AllowQuery="True"/>
Screen Name="HelpVideos" Path="../../HMSServiceCalls/HelpVideos/HelpVideos.aspx" SeqNo="7" ID="HelpVideos"> <Access_Rights AllowDelete="False" AllowModify="False" AllowAdd="True" AllowQuery="True"/>
how to convert the above xml code into aspx page using visual studio.
What I have tried:
i have XML code as follows ?xml version="1.0"?> -<root> -<Role Name="CONSLT"> <Category Name="EMR" General="No" Sitemap="Yes" SubCat="No" SeqNo="10" Desc="Others"> <Screen Name="Photo Capture" Path="../../Registration/PhotoCapture/PhotoCapture.aspx" SeqNo="1" ID="PHOTO1"> <Access_Rights AllowDelete="false" AllowModify="false" AllowAdd="false" AllowQuery="false"/> </Screen> <Screen Name="ServiceCalls" Path="../../HMSServiceCalls/HMSServiceCalls/HMSServiceCalls.aspx" SeqNo="6" ID="ServiceCalls"> <Access_Rights AllowDelete="False" AllowModify="False" AllowAdd="True" AllowQuery="True"/> </Screen> Screen Name="HelpVideos" Path="../../HMSServiceCalls/HelpVideos/HelpVideos.aspx" SeqNo="7" ID="HelpVideos"> <Access_Rights AllowDelete="False" AllowModify="False" AllowAdd="True" AllowQuery="True"/> </Screen> </Category> </Role> </root> how to convert the above xml code into aspx page using visual studio.
There is no way VS can know how to translate/transform your XML into HTML, because there are no general rules for that...
There is the XSLT option open for you, which even can be debugged in VS...
You may stat with this list:
XML Tools in Visual Studio[^]
这篇关于如何使用XML设计页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!