0
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns:def="http://www.w3.org/2002/ws/databinding/examples/6/09/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<types>
<xs:schema xmlns="http://www.w3.org/2002/ws/databinding/examples/6/09/"
targetNamespace="http://www.w3.org/2002/ws/databinding/examples/6/09/"
elementFormDefault="qualified">
<xs:include xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/"
schemaLocation="http://www.w3.org/2002/ws/databinding/examples/6/09/static/Included.xsd"/>
<xs:include xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap11enc="http://schemas.xmlsoap.org/soap/encoding/"
schemaLocation="http://www.w3.org/2002/ws/databinding/examples/6/09/static/Included.xsd"/>
<xs:element name="echoInclude">
<xs:complexType>
<xs:sequence>
<xs:element ref="ex:include"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</types>
</definitions>
からコンテンツを取得/解析する:schema要素LINQのクエリは、私はすべてのXSの<strong>のschemaLocation</strong>属性の値を取得したい。このXML(WSDL)上記のXMLでは
Uは、xsので、それはdoc.Descendants.Descendentsのようなものであるべきだと思います:スキーマが内部文書である内部のタイプ、したがって、それは、参照として私のポストを考えてみましょう – Abhi
動作していないです。あなたは試してみることができます - doc.Descendants(ns + "schema")。子孫(ns + "include") – adatapost
ありがとう、 – Abhi