Skip to Content
author's profile photo Former Member
Former Member



I have read that the WebAS XML parser (SapXmlToolkit) is a DOM-based parser. Is that true? How can I set the XML parser in WebAS, e.g. exchange it with an SAX based parser?

regards, maik

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Mar 03, 2004 at 01:54 PM

    Hi Maik,

    SAPXMLToolkit provides JAXP 1.2 implementation including DOM and SAX Parsing, XSL Transformation. Also it provides schema validation and XPath usage.

    Inside the WebAS, the sapxmltoolkit is provided as a separate library. In order to use it you have to register a reference from your component(application, service, etc.) to the sapxmltoolkit library (provider is

    You can create an instance of the SAXParserFactory using the standard JAXP way:

    ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();

    SAXParserFactory factory;

    try {



    factory = SAXParserFactory.newInstance();

    } finally {



    Since JAXP 1.1.3 (or newer versions) Sun changed the way of loading the implementation in a way that it is loaded by the context classloader. One of the reasons for this change is that in JDK 1.4, the JAXP interfaces are loaded by the system class loader. That's why every user needs to preset the context classloader to the one that contains or references the JAXP implementation.

    Note: Do not set any JAXP System properties inside the WebAS due to this does not work in a multi-threaded environment such as the J2EE Engine.

    Hope this helps

    Best regards,


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.