AXForum  
Zurück   AXForum > Microsoft Dynamics AX > DAX Blogs
CRM
Kennwort vergessen?
Registrieren Forum Rules Hilfe Benutzerliste Heutige Beiträge Suchen

 
 
Themen-Optionen Thema durchsuchen Ansicht
Alt 11.09.2007, 11:50   #1  
Blog bot ist offline
Blog bot
Участник
 
25.644 / 848 (80) +++++++
Registriert seit: 28.10.2006
axaptapedia: SaxReader class
Источник: http://www.axaptapedia.com/SaxReader_class
==============

Summary:
==Sax Reader==
SAX stands for Simple API for XML. A Sax Parser is an event driven parser. Unlike the XMLDocument and DOM Parser it doesn't built up the complete document tree. Therefore it is faster than XMLDocument but you cannot reference nodes like in DOM.

==Usage==
As explained above the SAX parser is event driven. So you have to handle these events. To so create a new class that extends the SaxContentHandler class. The SaxContentHandler provides methods for handling events, like start of document, start of element node, document end, etc.


class MySaxContentHandler extends SaxContentHandler
{
protected boolean startElement(str _namespaceURI, str _localName, str _qName, SaxAttributes _attributes)
{
boolean ret;
;
ret = super(_namespaceURI, _localName, _qName, _attributes);

info(_localName);
return ret;
}
}


Next create a new SaxReader Object and register your SaxContentHandler at the reader.
The SaxReader provides two methods to start parsing: parse and parseUrl.


SaxReader reader = new SaxReader();
;
reader.contentHandler(new MySaxContentHandler());
reader.parseUrl("http://terraserver.microsoft.com/TerraService2.asmx?WSDL");


[[Image:Saxoutput.png]]

==Dynamics AX 4==
Since Dynamcis AX 4 supports .NET use the System.Xml.XmlReader class to parse XML documents.

[[Category:General development]]


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

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
axaptapedia: RunBaseBatch Blog bot DAX Blogs 0 04.04.2009 22:05
axaptapedia: RunBaseBatch Blog bot DAX Blogs 0 31.03.2009 06:06
axaptapedia: Image class Blog bot DAX Blogs 0 22.07.2008 15:05
axaptapedia: Set (Foundation class) Blog bot DAX Blogs 0 24.04.2008 20:19
Говорят вышел SP2 для Axapta 3. Кто нибуть что знает на эту тему? soin DAX: Прочие вопросы 10 13.10.2003 10:43

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Gehe zu

Рейтинг@Mail.ru
Alle Zeitangaben in WEZ +3. Es ist jetzt 15:10 Uhr.
Powered by vBulletin® Version 3.8.5 (Deutsch)
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.