0
我是XSD的新手。從xsd文件的名稱空間中刪除前綴
<xs:schema id="test"
targetNamespace="http://tempuri.org/test.xsd"
elementFormDefault="qualified"
xmlns:bb="http://tempuri.org/test.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
和字段說明如下
BB:命名
BB:年齡
BB:位置
我需要刪除從命名空間中的 'BB',使它變成xmlns =「.........」以及我需要從字段名稱中刪除'bb:'以及使用C#。
感謝它的工作,但我使用'XDocument'來加載xsd文件。那麼,是否有可能使用Xdocument來替換? – 2013-02-15 13:16:41
首先,您可以將xsd加載到字符串中,替換您所需的內容,然後將其加載到XDocument中 - [link](http://msdn.microsoft.com/en-us/library/system.xml.linq.xdocument。 parse.aspx) – 2013-02-15 14:45:09