From 24e2581946931f887a200294f0df7cf407ff6409 Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Tue, 3 Dec 2024 22:16:37 +0100 Subject: [PATCH] add xml test --- custom/benchmark/Application.cfc | 1 + custom/benchmark/tests/xml.cfm | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 custom/benchmark/tests/xml.cfm diff --git a/custom/benchmark/Application.cfc b/custom/benchmark/Application.cfc index 21b0062..ecbc3d5 100644 --- a/custom/benchmark/Application.cfc +++ b/custom/benchmark/Application.cfc @@ -15,6 +15,7 @@ component { , "loops" , "primes" , "toString" + , "xml" ]; } diff --git a/custom/benchmark/tests/xml.cfm b/custom/benchmark/tests/xml.cfm new file mode 100644 index 0000000..4ff359e --- /dev/null +++ b/custom/benchmark/tests/xml.cfm @@ -0,0 +1,8 @@ + + xml = xmlNew(); + xml.XmlRoot = xmlElemNew( xml, "sampleXml" ); + xml.sampleXml.XmlText = "This is root node text"; + xmlSearch( xml, "/sampleXml" ); + str = toString( xml ); + xmlParse( str ); + \ No newline at end of file