Skip to content

Commit

Permalink
add xml test
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Dec 3, 2024
1 parent 2e396b3 commit 24e2581
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions custom/benchmark/Application.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ component {
, "loops"
, "primes"
, "toString"
, "xml"
];
}

Expand Down
8 changes: 8 additions & 0 deletions custom/benchmark/tests/xml.cfm
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<cfscript>
xml = xmlNew();
xml.XmlRoot = xmlElemNew( xml, "sampleXml" );
xml.sampleXml.XmlText = "This is root node text";
xmlSearch( xml, "/sampleXml" );
str = toString( xml );
xmlParse( str );
</cfscript>

0 comments on commit 24e2581

Please sign in to comment.