|
![]() |
#1 |
Administrator
|
Ой, Вы правы... Невнимательно подошел к делу. Спасибо за замечание
Вот код, который правильный. 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());
__________________
Возможно сделать все. Вопрос времени |
|
![]() |
#2 |
Участник
|
Цитата:
Сообщение от sukhanchik
![]() 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()); ![]() Для полноты картины не хватает X++: XMLDocument.appendChild(node); |
|
![]() |
#3 |
Administrator
|
Да, Вы правы... Вот что бывает, когда выковыриваешь код из разных мест быстренько....
__________________
Возможно сделать все. Вопрос времени |
|