Цитата:
Сообщение от
Lucky13
По-моему, это не то.
Ой, Вы правы... Невнимательно подошел к делу. Спасибо за замечание
Вот код, который правильный.
X++:
XmlAttribute attribute;
XmlNode node;
XmlDocument xmlDocument = new xmlDocument();
;
node = xmlDocument.createElement('node');
attribute = xmlDocument.createAttribute('attr1');
attribute.value('attr');
node.attributes().setNamedItem(attribute);
node.text('bla-bla-bla');
info(xmlDocument.xml());