XmlUtils Class

com.bea.xml
XmlUtils Class

public abstract class XmlUtils

    extends Object

Class providing some Utils for Xml Objects.


Hierarchy
Object
  XmlUtils

Constructor Summary

XmlUtils()

default constructor
 

Method Summary

public static XmlUtils
newInstance()
returns a new implementation instance
public abstract boolean
validate(XmlObject xmlObject, String systemId, EntityResolver resolver)
Schema validates an XmlObject using the given EntityResolver to find the schema.
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   

Constructor Detail

XmlUtils

protected XmlUtils()
default constructor
 

Method Detail

newInstance() Method

public static XmlUtils newInstance()
throws XmlUtilsException
returns a new implementation instance

Returns

An instance of XmlUtils.

Exceptions

XmlUtilsException

validate(XmlObject, String, EntityResolver) Method

public abstract boolean validate(XmlObject xmlObject, 
                                 String systemId, 
                                 EntityResolver resolver)
throws XmlUtilsException
Schema validates an XmlObject using the given EntityResolver to find the schema.
The schema is resolved by system id. The system id can be specified either as parameter or using the xsi:schemaLocation or xsi:noNamespaceSchemaLocation attribute.

Parameters

xmlObject
The XML instance to validate
systemId
Expected system id. The system id must be present if the xml document does not specify an xsi:schemaLocation or xsi:noNamespaceSchemaLocation
resolver
The entity resolver used to get the schema.

Exceptions

XmlUtilsException