Language
Asturianu (ast)
Català (ca)
Čeština (cs)
Dansk (da)
Deutsch (de)
English [US] (en-US)
Español (es)
Esperanto (eo)
Eesti keel (et)
Euskara (eu)
Français (fr)
Gàidhlig (gd)
Galego (gl)
Italiano (it)
Lietuvių (lt)
Magyar (hu)
Nederlands (nl)
Norsk (no)
Polski (pl)
Português [do Brasil] (pt-BR)
Português [Europeu] (pt)
Română (ro)
Slovenčina (sk)
Slovenščina (sl)
Suomi (fi)
Svenska (sv)
Yкраїнська (uk)
Tiếng Việt (vi)
Türkçe (tr)
ኦሮሚኛ (om)
Հայերեն (hy)
Ελληνικά (el)
български език (bg)
Русский (ru)
Cрпски [ћирилицом] (sr)
עברית (he)
हिन्दी (hi)
ភាសាខ្មែរ (km)
தமிழ் (ta)
ภาษาไทย (th)
简体中文 (zh-CN)
正體中文 (zh-TW)
日本語 (ja)
한국어 (ko)
The Free and Open Productivity Suite
util
Class XMLTools.XMLWellFormChecker
util.XMLTools.XMLWriter
|
+--util.XMLTools.XMLWellFormChecker
Direct Known Subclasses: XMLTools.XMLChecker , XMLTools.XMLTagsChecker
Enclosing class: XMLTools
public static class XMLTools.XMLWellFormChecker extends XMLTools.XMLWriter
Checks if the XML structure is well formed (i.e. all tags opened must be
closed and all tags opened inside a tag must be closed
inside the same tag). It also checks parameters passed.
If any collisions found appropriate error message is
output into a stream specified. No XML data output, i.e.
no output will be performed if no errors occur.
After document is completed there is a way to cehck
if the XML data and structure was valid.
docStarted
protected boolean docStarted
docEnded
protected boolean docEnded
tagStack
protected Vector tagStack
wellFormed
protected boolean wellFormed
noOtherErrors
protected boolean noOtherErrors
log
protected PrintWriter log
printXMLData
protected boolean printXMLData
XMLTools.XMLWellFormChecker
public XMLTools.XMLWellFormChecker (PrintWriter log)
XMLTools.XMLWellFormChecker
public XMLTools.XMLWellFormChecker (PrintWriter log_,
boolean printXMLData)
reset
public void reset ()
Reset all values. This is important e.g. for test of XFilter
interface, where 'filter()' method istbstarted twice.
startDocument
public void startDocument ()
Overrides: startDocument
in class XMLTools.XMLWriter
endDocument
public void endDocument ()
Overrides: endDocument
in class XMLTools.XMLWriter
startElement
public void startElement (String name,
com.sun.star.xml.sax.XAttributeList attr)
Overrides: startElement
in class XMLTools.XMLWriter
endElement
public void endElement (String name)
Overrides: endElement
in class XMLTools.XMLWriter
isWellFormed
public boolean isWellFormed ()
Checks if there were no errors during document handling.
I.e. startDocument() and endDocument() must be called,
XML must be well formed, paramters must be valid.
printError
public void printError (String msg)
Prints error message and all tags where error occured inside.
Also prints "Tag trace" in case if the full XML data isn't
printed.