XML's XMLDocument loading XML stream

xiaoxiao2021-03-31  210

Please put it in the Page_Load event and need to import namespace for use.

// Create an XML document XMLDocument doc1 = new xmldocument ();

// Load XML structure DOC1.LOADXML (" ");

// Assign DOC1.GETELEMENTSBYTAGNAME ("Result") [0] .INnertext = "1"; DOC1.GETELEMENTS = "123"; DOC1.GETELEMENTSBYTAGNAME ("DescriptionIPTION) ") [0] .innertext =" This is a test ";

// Output Data Response.write (DOC1.OUTERXML);

转载请注明原文地址:https://www.9cbs.com/read-130798.html

New Post(0)