static IXMLElement InternalConstructor(IXMLDocument doc, string name, params INode[] children)
        {
            IXMLElement x = doc.createElement(name);

            if (children.Length > 0)
                x.appendChild(children);

            return x;
        }
        static IXMLElement InternalConstructor(IXMLDocument doc, string name, string value) 
        {
            IXMLElement n = doc.createElement(name);


            if (value != null)
                n.appendChild(new ITextNode(doc, value));

            return n;
        }
示例#3
0
 private static IXMLHttpRequest InternalConstructor(string url, IXMLDocument data, Action <IXMLHttpRequest> handler)
 {
     return(InternalConstructor(url, data, handler, true));
 }
示例#4
0
 public static T Deserialize <T>(this IXMLDocument e, object[] k)
     where T : class, new()
 {
     return(new IXMLSerializer <T>(k).Deserialize(e));
 }
示例#5
0
 public static XDocument ToXDocument(this IXMLDocument doc)
 {
     return((__XDocument)doc);
 }
示例#6
0
 public IXMLHttpRequest(string url, IXMLDocument data, Action <IXMLHttpRequest> handler, bool @async)
 {
 }
 public IXMLElement(IXMLDocument doc, string name, string value) { }
 public IXMLElement(IXMLDocument doc, string name, params INode[] value) { }
 public TestSuiteSaver(string savePath, IXMLDocument doc)
 {
     this.savePath = savePath;
     Document      = doc;
 }
示例#10
0
        public static __XDocument Parse(string text)
        {
            var InternalValue = IXMLDocument.Parse(text);

            return(InternalValue);
        }
示例#11
0
        public override void InternalValueInitialize()
        {
            // bugcheck
            //Console.WriteLine("XContainer InternalValueInitialize");

            if (this.InternalValue == null)
            {
                if (Native.window == null)
                {

                    // what if we are running in a web worker?
                    // then we dont have the DOM xml available!
                    // tested by
                    // X:\jsc.svn\examples\javascript\Test\TestSolutionBuilder\TestSolutionBuilderV1\Application.cs
                }
                else
                {



                    var doc = new IXMLDocument(this.InternalElementName.LocalName);


                    this.InternalValue = doc.documentElement;
                }
            }
        }
示例#12
0
 public void setDocument(IXMLDocument doc)
 {
     Document = doc;
 }
 public NewTestCaseControlExpander(Control page, IXMLDocument doc)
 {
     InitializeComponent();
     Document = doc;
     Page     = (TestCaseViewer)page;
 }