怎样能用C#创建包含多个namespace的结点?
代码如下:
但是需要在开头包含所有命名空间
<?xml version="1.0"?>
<Schema name="FdtFFBlockSchema"
xmlns="urn:schemas-microsoft-com:xml-data"
xmlns:dt="urn:schemas-microsoft-com:datatypes"
xmlns:btm="x-schema:BtmDataTypesSchema.xml"
xmlns:fdt="x-schema:FDTDataTypesSchema.xml"
>
<!--Definition of Attributes-->
<AttributeType name="schemaVersion" dt:type="string" default="1.21"/>
<!--Definition of Elements-->
<!-- Block address for scanning -->
<ElementType name="BlockInformation" content="eltOnly">
<attribute type="fdt:nodeId" required="no"/>
<attribute type="btm:blockTag" required="yes"/>
<!-- the index represents the absolute index of the block -->
<attribute type="fdt:index" required="yes"/>
<attribute type="btm:profile" required="yes"/>
<attribute type="btm:profileRevision" required="yes"/>
<attribute type="fdt:descriptor" required="no"/>
<element type="btm:BtmBlockType" minOccurs="1" maxOccurs="1"/>
</ElementType>
</Schema>