Anda di halaman 1dari 14

2003 BEA Systems, Inc.

1061
XML for Administrators
At the end of this module you will be able to:
9 Describe what the XML Registry is
9 Describe how to generate and install custom
parsers
Module 29
XML for Administrators-1
2003 BEA Systems, Inc. 1062
Road Map
1. XML Administration
Understand XML Support i n Weblogi c Server
Understand the XML Regi stry
Replace the Default XML Parser
I nstall DT D Speci fi c Parsers
XML for Administrators-2
2003 BEA Systems, Inc. 1063
XML Support in WebLogic Server
fWebLogic Server provides:
a built in default XML parser based on the Apache
Xerces Parser v1.2.0
a J AXP v 1.0.1 support via the XML Registry
a built in XSLT processor based on the Apache Xalan
package.
an XML Registry for defining/configuring XML parsers
XML for Administrators-3
2003 BEA Systems, Inc. 1064
What Is the XML Registry?
fThe XML Registry:
is mechanism for specifying the default parser for a
server
can be used to define and install custom parsers
can be used to locally resolve external entities
The XML Registry is only
used when developers
implement with JAXP
XML for Administrators-4
2003 BEA Systems, Inc. 1065
The XML Registry
1 1
2 2
3 3
XML for Administrators-5
2003 BEA Systems, Inc. 1066
Creating a New XML Registry
fXML Registries are defined by
domain\services\XML.
3 3
2 2
1 1
XML for Administrators-6
2003 BEA Systems, Inc. 1067
Creating a New XML Registry
fThe Create a new XML Registry page.
3 3
2 2
1 1
XML for Administrators-7
2003 BEA Systems, Inc. 1068
Servers and the XML Registry
fXML Registries are targeted to specific servers.
5 5
1 1
4 4
3 3
2 2
XML for Administrators-8
2003 BEA Systems, Inc. 1069
XML and Performance
fXML processing presents a sizable performance
challenge.
fWebLogic Server meets the performance challenge
by using custom parsers.
fWebLogic Server also supports replacing the
default parser to take advantage of third party
parser improvements.
XML for Administrators-9
2003 BEA Systems, Inc. 1070
Creating a Custom Parser
Syntax:
java weblogicx.xml.parserc -d dest -root topelement
-package packagename [-keepgenerated] dtdfilename
dest Destination
topelement Element at the root of the XML tree
packagename Package where the parser will be placed
dtdfilename Path and name of the DTD file to use as input
Example:
java weblogicx.xml.parserc -d %classes% -root catalog
-package ParserExample [-keepgenerated] catalog.dtd
10
0101
1110
f To create a custom parser:
1. Add xmlx.jar to your CLASSPATH
2. Run weblogicx.xml.parserc
XML for Administrators-10
2003 BEA Systems, Inc. 1071
Custom Parsers
fCustom Parsers are configured specific to an XML
Registry via Edit entries.
4 4
3 3
2 2
1 1
XML for Administrators-11
2003 BEA Systems, Inc. 1072
Associating a Parser with a DTD
fThe Entries create page allows you to enter the
fully qualified name of the parser.
3 3
2 2
1 1
XML for Administrators-12
2003 BEA Systems, Inc. 1073
Section Review
9 XML support in WebLogic Server
9 The XML Registry
9 Installing custom parsers
In this section we discussed:
XML for Administrators-13
2003 BEA Systems, Inc. 1074
Module Review
9 Defining XML Registries
9 Registering a third-party parser
9 Creating and registering custom parsers
In this module we discussed:
XML for Administrators-14

Anda mungkin juga menyukai