9 instantiations of XDocument
System.Data.Linq (1)
DbConvert.cs (1)
165
return new System.Xml.Linq.
XDocument
();
System.Data.Services.Client (2)
System\Data\Services\Client\ClientConvert.cs (1)
186
return (0 < propertyValue.Length ? System.Xml.Linq.XDocument.Parse(propertyValue) : new System.Xml.Linq.
XDocument
());
System\Data\Services\Client\DataServiceContext.cs (1)
2900
node = new
XDocument
();
System.ServiceModel.Web (4)
System\ServiceModel\Dispatcher\HelpHtmlBuilder.cs (2)
228
return new
XDocument
(
347
XDocument schemaDocument = new
XDocument
();
System\ServiceModel\Dispatcher\HelpPage.cs (2)
421
XDocument exampleDocument = new
XDocument
();
438
XDocument XmlExampleDocument = new
XDocument
();
System.Xml.Linq (2)
System\Xml\Linq\XLinq.cs (2)
5715
XDocument d = new
XDocument
();
5964
return new
XDocument
(this);
144 references to XDocument
System.Data.Linq (3)
DbConvert.cs (1)
164
else if (toType == typeof(System.Xml.Linq.
XDocument
) && (string)value == string.Empty) {
SqlClient\SqlTypeSystemProvider.cs (2)
1454
if (type == typeof(System.Xml.Linq.
XDocument
) ||
1574
if (type == typeof(System.Xml.Linq.
XDocument
) ||
System.Data.Services.Client (4)
System\Data\Services\Client\ClientConvert.cs (3)
186
return (0 < propertyValue.Length ? System.Xml.Linq.
XDocument
.Parse(propertyValue) : new System.Xml.Linq.XDocument());
351
return ((System.Xml.Linq.
XDocument
)propertyValue).ToString();
485
types[(int)StorageType.XDocument] = typeof(System.Xml.Linq.
XDocument
);
System\Data\Services\Client\DataServiceContext.cs (1)
2895
XDocument
node = null;
System.Data.Services.Design (4)
System\Data\EntityModel\EntityClassGenerator.cs (4)
355
XDocument
sourceDocument =
XDocument
.Load(sourceReader);
396
private static void CreateReadersV1(
XDocument
sourceDocument, XmlNamespaceManager namespaceManager, List<XmlReader> readers)
446
private static bool TryCreateReadersV2(
XDocument
sourceDocument, List<XElement> schemaElements)
System.ServiceModel.Web (17)
System\ServiceModel\Dispatcher\HelpHtmlBuilder.cs (14)
56
public static
XDocument
CreateHelpPage(Uri baseUri, IEnumerable<OperationHelpInformation> operations)
58
XDocument
document = CreateBaseDocument(SR2.GetString(SR2.HelpPageOperationsAt, baseUri));
108
public static
XDocument
CreateOperationHelpPage(Uri baseUri, OperationHelpInformation operationInfo)
110
XDocument
document = CreateBaseDocument(SR2.GetString(SR2.HelpPageReferenceFor, BuildFullUriTemplate(baseUri, operationInfo.UriTemplate)));
140
public static
XDocument
CreateMethodNotAllowedPage(Uri helpUri)
142
XDocument
document = CreateBaseDocument(SR2.GetString(SR2.HelpPageTitleText));
158
public static
XDocument
CreateServerErrorPage(Uri helpUri, Exception error)
160
XDocument
document = CreateBaseDocument(SR2.GetString(SR2.HelpPageRequestErrorTitle));
197
public static
XDocument
CreateEndpointNotFound(Uri helpUri)
199
XDocument
document = CreateBaseDocument(SR2.GetString(SR2.HelpPageTitleText));
215
public static
XDocument
CreateTransferRedirectPage(string originalTo, string newLocation)
217
XDocument
document = CreateBaseDocument(SR2.GetString(SR2.HelpPageTitleText));
226
static
XDocument
CreateBaseDocument(string title)
347
XDocument
schemaDocument = new XDocument();
System\ServiceModel\Dispatcher\HelpPage.cs (2)
421
XDocument
exampleDocument = new XDocument();
438
XDocument
XmlExampleDocument = new XDocument();
System\ServiceModel\Web\WebOperationContext.cs (1)
143
public Message CreateXmlResponse(
XDocument
document)
System.Xml.Linq (114)
System\Xml\Linq\XLinq.cs (103)
956
public
XDocument
Document {
960
return n as
XDocument
;
1451
/// <see cref="
XDocument
"/>,
1926
/// Two <see cref="
XDocument
"/>s are equal if their root nodes are equal. Two
2012
XDocument
n = this as
XDocument
;
2102
/// Two <see cref="
XDocument
"/>s are equal if their root nodes are equal. Two
2140
/// Two <see cref="
XDocument
"/>s are equal if their root nodes are equal. Two
2237
if (parent is
XDocument
) {
2314
/// <see cref="
XDocument
"/> and <see cref="XElement"/>.
2517
settings.ConformanceLevel = this is
XDocument
? ConformanceLevel.Document : ConformanceLevel.Fragment;
3238
if (this is
XDocument
) {
3840
/// <see cref="XmlReader"/>. Note: Use <see cref="
XDocument
.Parse(string)"/>
3841
/// to create an <see cref="
XDocument
"/> from a string containing XML.
3842
/// <seealso cref="
XDocument
.Load(string)" />
3852
/// <seealso cref="
XDocument
.Parse(string)"/>
3879
/// <seealso cref="
XDocument
.Load(string, LoadOptions)"/>
5134
if (node is
XDocument
) throw new ArgumentException(Res.GetString(Res.Argument_AddNode, XmlNodeType.Document));
5395
/// An <see cref="
XDocument
"/> can contain:
5410
/// Initializes a new instance of the <see cref="
XDocument
"/> class.
5412
/// <see cref="
XDocument
"/>, creating an <see cref="
XDocument
"/> with
5414
/// <see cref="
XDocument
"/> object.
5417
/// Initializes a new instance of the <see cref="
XDocument
"/> class.
5423
/// Initializes a new instance of the <see cref="
XDocument
"/> class with the specified content.
5444
/// Initializes a new instance of the <see cref="
XDocument
"/> class
5470
/// Initializes a new instance of the <see cref="
XDocument
"/> class from an
5474
/// The <see cref="
XDocument
"/> object that will be copied.
5476
public XDocument(
XDocument
other) : base(other) {
5522
/// <see cref="
XDocument
"/> and initializing it from a data source containing
5525
/// <see cref="XmlReader"/>. Note: Use <see cref="
XDocument
.Parse(string)"/>
5526
/// to create an <see cref="
XDocument
"/> from a string containing XML.
5527
/// <seealso cref="
XDocument
.Parse(string)"/>
5530
/// Create a new <see cref="
XDocument
"/> based on the contents of the file
5532
/// <see cref="
XDocument
.Parse(string)"/> to create an <see cref="
XDocument
"/> from
5535
/// <seealso cref="
XDocument
.Parse(string)"/>
5543
/// A URI string referencing the file to load into a new <see cref="
XDocument
"/>.
5546
/// An <see cref="
XDocument
"/> initialized with the contents of the file referenced
5554
public static
XDocument
Load(string uri) {
5559
/// Create a new <see cref="
XDocument
"/> based on the contents of the file
5571
/// A string representing the URI of the file to be loaded into a new <see cref="
XDocument
"/>.
5577
/// An <see cref="
XDocument
"/> initialized with the contents of the file referenced
5586
public static
XDocument
Load(string uri, LoadOptions options) {
5594
/// Create a new <see cref="
XDocument
"/> and initialize its underlying XML tree using
5599
/// created <see cref="
XDocument
"/>.
5602
/// A new <see cref="
XDocument
"/> containing the contents of the passed in
5605
public static
XDocument
Load(Stream stream) {
5610
/// Create a new <see cref="
XDocument
"/> and initialize its underlying XML tree using
5621
/// created <see cref="
XDocument
"/>.
5627
/// A new <see cref="
XDocument
"/> containing the contents of the passed in
5630
public static
XDocument
Load(Stream stream, LoadOptions options) {
5638
/// Create a new <see cref="
XDocument
"/> and initialize its underlying XML tree using
5643
/// created <see cref="
XDocument
"/>.
5646
/// A new <see cref="
XDocument
"/> containing the contents of the passed in
5649
public static
XDocument
Load(TextReader textReader) {
5654
/// Create a new <see cref="
XDocument
"/> and initialize its underlying XML tree using
5665
/// created <see cref="
XDocument
"/>.
5671
/// A new <see cref="
XDocument
"/> containing the contents of the passed in
5674
public static
XDocument
Load(TextReader textReader, LoadOptions options) {
5682
/// Create a new <see cref="
XDocument
"/> containing the contents of the
5687
/// <see cref="
XDocument
"/>.
5690
/// A new <see cref="
XDocument
"/> containing the contents of the passed
5693
public static
XDocument
Load(XmlReader reader) {
5698
/// Create a new <see cref="
XDocument
"/> containing the contents of the
5703
/// <see cref="
XDocument
"/>.
5709
/// A new <see cref="
XDocument
"/> containing the contents of the passed
5712
public static
XDocument
Load(XmlReader reader, LoadOptions options) {
5715
XDocument
d = new XDocument();
5738
/// Create a new <see cref="
XDocument
"/> from a string containing
5742
/// Create a new <see cref="
XDocument
"/> from a string containing
5749
/// An <see cref="
XDocument
"/> containing an XML tree initialized from the
5752
public static
XDocument
Parse(string text) {
5757
/// Create a new <see cref="
XDocument
"/> from a string containing
5774
/// An <see cref="
XDocument
"/> containing an XML tree initialized from the
5777
public static
XDocument
Parse(string text, LoadOptions options) {
5788
/// Outputs this <see cref="
XDocument
"/>'s underlying XML tree. The output can
5793
/// Output this <see cref="
XDocument
"/> to a file.
5798
/// <see cref="
XDocument
.Save(string, SaveOptions)"/>) enabling
5815
/// Output this <see cref="
XDocument
"/> to a file.
5844
/// Output this <see cref="
XDocument
"/> to the passed in <see cref="Stream"/>.
5849
/// <see cref="
XDocument
.Save(Stream, SaveOptions)"/>) enabling
5855
/// The <see cref="Stream"/> to output this <see cref="
XDocument
"/> to.
5862
/// Output this <see cref="
XDocument
"/> to a <see cref="Stream"/>.
5886
/// Output this <see cref="
XDocument
"/> to the passed in <see cref="TextWriter"/>.
5891
/// <see cref="
XDocument
.Save(TextWriter, SaveOptions)"/>) enabling
5897
/// The <see cref="TextWriter"/> to output this <see cref="
XDocument
"/> to.
5904
/// Output this <see cref="
XDocument
"/> to a <see cref="TextWriter"/>.
5921
/// Output this <see cref="
XDocument
"/> to an <see cref="XmlWriter"/>.
5932
/// Output this <see cref="
XDocument
"/>'s underlying XML tree to the
5934
/// <seealso cref="
XDocument
.Save(XmlWriter)"/>
5938
/// <see cref="
XDocument
"/>.
5968
XDocument
other = node as
XDocument
;
8149
if (o is
XDocument
) {
8290
if (o.parent != null && o.parent.parent == null && o.parent is
XDocument
) {
8295
if (parent is
XDocument
) {
8719
XDocument
d = source as
XDocument
;
8838
XDocument
doc = n as
XDocument
;
9019
bool ReadIntoDocument(
XDocument
d) {
9080
if (n.parent == null || (n.parent.parent == null && n.parent is
XDocument
)) {
System\Xml\Linq\XNodeNavigator.cs (5)
248
XElement root = ((
XDocument
)o).Root;
336
if ((TextMask & mask) != 0 && c.parent == null && c is
XDocument
) {
351
if ((TextMask & mask) != 0 && c.parent == null && c is
XDocument
) {
510
if ((TextMask & mask) != 0 && c.parent == null && c is
XDocument
) {
832
if (text.parent is
XDocument
) throw new ArgumentException(System.Xml.Linq.Res.GetString(System.Xml.Linq.Res.Argument_CreateNavigator, XmlNodeType.Whitespace));
System\Xml\Linq\XNodeValidator.cs (6)
42
source = ((
XDocument
)source).Root;
382
/// Validate a <see cref="
XDocument
"/>
389
public static void Validate(this
XDocument
source, XmlSchemaSet schemas, ValidationEventHandler validationEventHandler) {
394
/// Validate a <see cref="
XDocument
"/>
401
/// <param name="addSchemaInfo">If enabled the <see cref="
XDocument
"/> and the corresponding
405
public static void Validate(this
XDocument
source, XmlSchemaSet schemas, ValidationEventHandler validationEventHandler, bool addSchemaInfo) {
XamlBuildTask (2)
Microsoft\Build\Tasks\Xaml\GenerateTemporaryAssemblyTask.cs (2)
87
XDocument
projectDocument =
XDocument
.Load(this.CurrentProject);