![]() |
![]() |
|
|
| |
FAQs: XML
Which XML parser comes with WebLogic Server 6.1?
We bundle a parser, based on Apache's Xerces 1.3.1 parser, in WebLogic Server 6.1. In addition, we include a WebLogic proprietary high-performance non-validating parser that you can use for small to medium sized XML documents. The WebLogic XML Registry allows you to configure the parser you want to use for specific document types.
Is an XSLT processor bundled in WebLogic Server?
Yes, we bundle an XSLT processor, based on Apache's Xalan 2.0.1 processor, in WebLogic Server 6.1.
What version of the JAXP API specification is implemented in WebLogic Server 6.1?
Version 1.1. This version includes pluggable XML transformation as well as pluggable XML parsing.
Can I use the getAttribute() and setAttribute() methods of Version 2.2 of the Java Servlet API to parse XML documents?
Yes. Use the setAttribute() method for SAX mode parsing and the getAttribute() method for DOM mode parsing. Using these methods in a Servlet, however, is a WebLogic-specific feature. This means that the Servlet may not be fully portable to other Servlet engines, so use the feature with caution.
Can I plug in a version of Apache's Xerces XML parser that is different to the one that is built-in with WebLogic Serve 6.1 (Xerces 1.3.1)?
Yes. The version of Xerces that you can plug in, depends on the specific service pack of WebLogic Server 6.1 that you have installed.
If you have installed WebLogic Server 6.1 Service Pack 2 or lower on your computer, follow these instructions:
You can plug in the following versions of Xerces:
Warning: If you plug in version 2.0.0 or higher of Xerces, you cannot use the Xalan compatibility classes.
To plug in a different version of the Apache Xerces parser, you must replace the contents of the file WL_HOME/lib/xmlx.jar by following these steps:
Alternatively, add the xerces.jar file to the end of the WebLogic Server CLASSPATH
Alternatively, put the xerces.jar file into the META-INF/lib directory of your application. In this case, be sure you do not enable the PreferWebInf Classes flag for your Web application.
If you have installed WebLogic Server 6.1 Service Pack 3 on your computer, follow these instructions:
You can plug in any version of the Xerces XML parser.
To plug in a different verison of the Xerces parser, follow these steps:
Warning: If you plug in a new version of Xerces using this procedure, you cannot use Administratin Console to configure the XML registry to configure the parser or entity resolution. If you need to configure the XML registry, use the procedure for plugging in new parsers for version 6.1 Service Pack 2 or lower described in the beginning of this section.
I plugged in a version of Apache Xalan that I downloaded from the Apache Web site, and now I get errors when I try to transform documents. What is the problem?
You must ensure that the version of Apache Xalan you plugged-in is compatible with the version of Apache Xerces that you are using (which is version 1.3.1 if you are using the built-in parser).
How do I identify the document type of an XML document?
If the XML document has a Public ID, then that is its document type. For example, if an XML document contains the following DOCTYPE declaration:
<!DOCTYPE mydoc PUBLIC "My public ID String" "http://foo.com/url/to/my/dtd">
then its document type is My public ID String.
If the DOCTYPE declaration does not contain a Public ID, but specifies a System ID, then the document type is the System ID. For example, in the following DOCTYPE declaration:
<!DOCTYPE mydoc SYSTEM "http://foo.com/url/to/my/dtd">
the document type is http://foo.com/url/to/my/dtd.
Note: The System ID is of the DTD, not of the XML document itself. It can, however, still be used as a way to identify the XML document.
If the XML document does not specify a DOCTYPE declaration, then the document type can be either the root element name or the namespace URI, if it has one.
![]() |
![]() |
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
|