Показать сообщение отдельно
Старый 17.07.2007, 15:40   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
axaptapedia: XMLDocument class
Источник: http://www.axaptapedia.com/XMLDocument_class
==============

Summary:
[[XMLDocument class]] allows to manipulate [[XML]] data via DOM.

XMLDocument is a thin wrapper around MSXML in Ax3 and around System.XML .NET framework namespace in Ax4, so use cross refereneces and [http://msdn2.microsoft.com/en-us/xml MSDN] to learn about DOM and other stuff.

Example:


X++:
static void Test_XML(Args _args)
{
    str xml = @'
        
            
                1
                bla bla
            
           
                3
                asdf
           
        
    ';
    XMlDocument doc=XMLDocument::newXML(xml);
    XMLNodeList tests = doc.selectNodes('//test');
    XMLNode node;
;
    node = tests.nextNode();
    while (node)
    {
        info(node.selectSingleNode('testnumber').text());
        info(node.selectSingleNode('testname').text());
        node = tests.nextNode();
    }
}

[[Category:General development]]


Источник: http://www.axaptapedia.com/XMLDocument_class
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.