Demonstrates the Aras Best Practice of building a single AML statement instead of combining items with appendItem()
string myAml = "<AML>"; | |
for (int i=0; i<10; i++) | |
{ | |
myAml = myAml + "<Item type=\"CAD\" action=\"add\">"; | |
myAml = myAml + "<item_number>" + "Test " + i + "</item_number>"; | |
myAml = myAml + "</Item>"; | |
} | |
myAml = myAml + "</AML>"; | |
Item res = inn.applyAML(myAml); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
A couple of concerns with this example
System.Text.StringBuilder
orSystem.IO.StringWriter
&
,<
, or>
in the user input.I forked this example and made some tweaks to address both concerns.