|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectdk.brics.xsugar.xml.InputNormalizer
public class InputNormalizer
Normalizes XML input (special chars, whitespace, and qnames).
Whitespace character data is removed if it has no non-whitespace siblings.
Element/attribute names with non-empty namespace URI are written in expanded form: {URI}localname.
Characters are escaped using Escaping.escape(String).
End tags are written as </>.
| Constructor Summary | |
|---|---|
InputNormalizer()
Constructs a new input normalizer. |
|
| Method Summary | |
|---|---|
LocationMap |
getLocationMap()
Returns the location map from the previous normalization. |
String |
normalize(String x,
String file)
Normalizes the given XML input |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputNormalizer()
| Method Detail |
|---|
public LocationMap getLocationMap()
public String normalize(String x,
String file)
throws org.jdom.JDOMException,
IOException
x - input stringfile - origin
org.jdom.JDOMException - if a parse error occurs
IOException - if an I/O error occurs
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||