BizTalk Utilities CV ,   Jobs ,   Code library  
 
javax.xml.transform.Result Class
javax.xml.transform.ErrorListener Class
javax.xml.transform.dom.DOMSource Class
javax.xml.transform.dom.DOMResult Class
javax.xml.parsers.SAXParserFactory Class
javax.xml.parsers.SAXParser Class
javax.xml.parsers.DocumentBuilderFactory Class
javax.xml.parsers.DocumentBuilder Class
SAX 2.0 Features and Properties
MSMQ Mode Tool
XML for Software Configuration
XML - Basics.
RTF to XML converter 1.2
Retriving XML from a Oracle Table using the XDK for PL/SQL
'AspDoc' - Documenting your ASP code with XML
Password Encryption
Inserting Data in XML format into a table using Oracle XML SQL Utility
Java Architecture for XML Binding
XML to JTree
QuickBooks XML SDK
<< XSLT
.NET and XML >>

By :Mark Wilson
I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :03/24/2008
Times viewed :192

 

The javax.xml.transform.sax.SAXResult Class

All Known Implementing Interfaces: javax.xml.transform.Result

Members

Signature

Public methods

ContentHandler

getHandler()

LexicalHandler

getLexicalHandler()

String

getSystemId()

void

setHandler(ContentHandler handler)

void

setLexicalHandler(LexicalHandler handler)

void

setSystemId(String systemId)

Overview

This class acts as a holder for transformation result. This class is important if you want implement a SAX-style parsing on the result of your transformation. So using this class you can use application specific logic on your result as SAX Parser.

Method Overviews

All most all methods in this class are important but depend upon your requirement.

Example of  How to create a SAXResult using ContentHandler

SAXResult saxResult = new SAXResult(new ContentHandlerImpl());

Example of How to create a SAXSource and SAXResult in transformation.

/**

   * This method uses SAXSource and SAXResult for transformation.

   */

  public void useSAXSourceAndSAXResult()

  {

    String sourcesystemURI = "E:\\topxml\\person.xml";

       

    InputSource inoutSource = new InputSource(sourcesystemURI);

    SAXSource saxSource = new SAXSource(inoutSource);

    InputSource inoutResult = new InputSource(sourcesystemURI);

    SAXResult saxResult = new SAXResult(new ContentHandlerImpl());

    try

    {

      Templates template = tFactory.newTemplates(new StreamSource("E:\\topxml\\parameterized.xsl"));

      transformer = template.newTransformer();

      transformer.setParameter("heading","This is SAXSource and SAXResult Example");

      transformer.transform(saxSource,saxResult);

    }catch(TransformerConfigurationException tce)

    {

        tce.printStackTrace();

    }catch(TransformerException te)

    {

       te.printStackTrace();

    }

  }


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

Software Developers Needed in Charl
Sr. Software Engineer - Analytics
Immediate Mainframe openings for Ch
Immediate TANDEM-TAL openings for C
Immediate ASP.NET/C# Openings for C

View all Jobs (Add yours)
View all CV (Add yours)



help desk services
swimming pool contractor
help desk
water softener
Teleconference
Host Department NOLIMIT Web Hosting
MSN
sunglasses


    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP