9 instantiations of XDocument
System.Data.Linq (1)
DbConvert.cs (1)
165return new System.Xml.Linq.XDocument();
System.Data.Services.Client (2)
System\Data\Services\Client\ClientConvert.cs (1)
186return (0 < propertyValue.Length ? System.Xml.Linq.XDocument.Parse(propertyValue) : new System.Xml.Linq.XDocument());
System\Data\Services\Client\DataServiceContext.cs (1)
2900node = new XDocument();
System.ServiceModel.Web (4)
System\ServiceModel\Dispatcher\HelpHtmlBuilder.cs (2)
228return new XDocument( 347XDocument schemaDocument = new XDocument();
System\ServiceModel\Dispatcher\HelpPage.cs (2)
421XDocument exampleDocument = new XDocument(); 438XDocument XmlExampleDocument = new XDocument();
System.Xml.Linq (2)
System\Xml\Linq\XLinq.cs (2)
5715XDocument d = new XDocument(); 5964return new XDocument(this);
144 references to XDocument
System.Data.Linq (3)
DbConvert.cs (1)
164else if (toType == typeof(System.Xml.Linq.XDocument) && (string)value == string.Empty) {
SqlClient\SqlTypeSystemProvider.cs (2)
1454if (type == typeof(System.Xml.Linq.XDocument) || 1574if (type == typeof(System.Xml.Linq.XDocument) ||
System.Data.Services.Client (4)
System\Data\Services\Client\ClientConvert.cs (3)
186return (0 < propertyValue.Length ? System.Xml.Linq.XDocument.Parse(propertyValue) : new System.Xml.Linq.XDocument()); 351return ((System.Xml.Linq.XDocument)propertyValue).ToString(); 485types[(int)StorageType.XDocument] = typeof(System.Xml.Linq.XDocument);
System\Data\Services\Client\DataServiceContext.cs (1)
2895XDocument node = null;
System.Data.Services.Design (4)
System\Data\EntityModel\EntityClassGenerator.cs (4)
355XDocument sourceDocument = XDocument.Load(sourceReader); 396private static void CreateReadersV1(XDocument sourceDocument, XmlNamespaceManager namespaceManager, List<XmlReader> readers) 446private static bool TryCreateReadersV2(XDocument sourceDocument, List<XElement> schemaElements)
System.ServiceModel.Web (17)
System\ServiceModel\Dispatcher\HelpHtmlBuilder.cs (14)
56public static XDocument CreateHelpPage(Uri baseUri, IEnumerable<OperationHelpInformation> operations) 58XDocument document = CreateBaseDocument(SR2.GetString(SR2.HelpPageOperationsAt, baseUri)); 108public static XDocument CreateOperationHelpPage(Uri baseUri, OperationHelpInformation operationInfo) 110XDocument document = CreateBaseDocument(SR2.GetString(SR2.HelpPageReferenceFor, BuildFullUriTemplate(baseUri, operationInfo.UriTemplate))); 140public static XDocument CreateMethodNotAllowedPage(Uri helpUri) 142XDocument document = CreateBaseDocument(SR2.GetString(SR2.HelpPageTitleText)); 158public static XDocument CreateServerErrorPage(Uri helpUri, Exception error) 160XDocument document = CreateBaseDocument(SR2.GetString(SR2.HelpPageRequestErrorTitle)); 197public static XDocument CreateEndpointNotFound(Uri helpUri) 199XDocument document = CreateBaseDocument(SR2.GetString(SR2.HelpPageTitleText)); 215public static XDocument CreateTransferRedirectPage(string originalTo, string newLocation) 217XDocument document = CreateBaseDocument(SR2.GetString(SR2.HelpPageTitleText)); 226static XDocument CreateBaseDocument(string title) 347XDocument schemaDocument = new XDocument();
System\ServiceModel\Dispatcher\HelpPage.cs (2)
421XDocument exampleDocument = new XDocument(); 438XDocument XmlExampleDocument = new XDocument();
System\ServiceModel\Web\WebOperationContext.cs (1)
143public Message CreateXmlResponse(XDocument document)
System.Xml.Linq (114)
System\Xml\Linq\XLinq.cs (103)
956public XDocument Document { 960return n as XDocument; 1451/// <see cref="XDocument"/>, 1926/// Two <see cref="XDocument"/>s are equal if their root nodes are equal. Two 2012XDocument 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 2237if (parent is XDocument) { 2314/// <see cref="XDocument"/> and <see cref="XElement"/>. 2517settings.ConformanceLevel = this is XDocument ? ConformanceLevel.Document : ConformanceLevel.Fragment; 3238if (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)"/> 5134if (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. 5476public 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 5554public 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 5586public 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 5605public 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 5630public 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 5649public 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 5674public 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 5693public 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 5712public static XDocument Load(XmlReader reader, LoadOptions options) { 5715XDocument 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 5752public 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 5777public 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"/>. 5968XDocument other = node as XDocument; 8149if (o is XDocument) { 8290if (o.parent != null && o.parent.parent == null && o.parent is XDocument) { 8295if (parent is XDocument) { 8719XDocument d = source as XDocument; 8838XDocument doc = n as XDocument; 9019bool ReadIntoDocument(XDocument d) { 9080if (n.parent == null || (n.parent.parent == null && n.parent is XDocument)) {
System\Xml\Linq\XNodeNavigator.cs (5)
248XElement root = ((XDocument)o).Root; 336if ((TextMask & mask) != 0 && c.parent == null && c is XDocument) { 351if ((TextMask & mask) != 0 && c.parent == null && c is XDocument) { 510if ((TextMask & mask) != 0 && c.parent == null && c is XDocument) { 832if (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)
42source = ((XDocument)source).Root; 382/// Validate a <see cref="XDocument"/> 389public 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 405public static void Validate(this XDocument source, XmlSchemaSet schemas, ValidationEventHandler validationEventHandler, bool addSchemaInfo) {
XamlBuildTask (2)
Microsoft\Build\Tasks\Xaml\GenerateTemporaryAssemblyTask.cs (2)
87XDocument projectDocument = XDocument.Load(this.CurrentProject);