|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.brics.xact.operations.XMLValidator
public class XMLValidator
Schema validation for XML templates. Supported schema languages: DTD, XML Schema, and Restricted RELAX NG.
Method Summary | |
---|---|
static String |
expandQName(String type,
Map<String,String> map1,
Map<String,String> map2,
Origin origin)
Converts a QName into an expanded name using the given namespace maps. |
static void |
loadXMLSchema(URL url)
Loads an XML schema. |
static Map<String,SequenceNode> |
loadXMLSchema(URL url,
XMLGraph xg)
Loads an XML schema into an existing XML graph. |
static void |
validate(XML x,
String type,
Origin origin)
Checks that the given template is valid according to the given schema type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String expandQName(String type, Map<String,String> map1, Map<String,String> map2, Origin origin)
XMLValidationException
- if the prefix is not declared in any of the given mapspublic static void loadXMLSchema(URL url) throws ParseException
ParseException
- if a parse error occurspublic static Map<String,SequenceNode> loadXMLSchema(URL url, XMLGraph xg) throws ParseException
ParseException
- if a parse error occurspublic static void validate(XML x, String type, Origin origin) throws XMLValidationException
XMLValidationException
- if the template is invalid
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |