2
有沒有辦法讓我在xml中更改樣式表標記。有沒有辦法做到這一點.... 前,如果我收到如何在.NET中更改xml中的樣式表標記
<?xml version="1.0" encoding="us-ascii"?>
<?xml-stylesheet type="text/xsl" href="www.somecompany.com/stylesheet.xsl"?>
<MedicalRecord>
......
......
</MedicalRecord>
我想讓它
<?xml version="1.0" encoding="us-ascii"?>
<?xml-stylesheet type="text/xsl" href="mystylesheet.xsl"?>
<MedicalRecord>
......
......
</MedicalRecord>
注意href標記值發生了變化。
見http://stackoverflow.com/questions/2424613/xml-changing-the-value-of-an-attribute – bluish 2011-01-14 17:02:45