java.lang.Object
org.htmlunit.corejs.javascript.xml.XMLLib
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn object which specifies an XMLLib implementation to be used at runtime. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final XMLLibbindToScope(VarScope scope) abstract StringescapeAttributeValue(Object value) Escapes the reserved characters in a value of an attribute.abstract StringescapeTextValue(Object value) Escapes the reserved characters in a value of a text node.static XMLLibextractFromScope(VarScope scope) static XMLLibextractFromScopeOrNull(VarScope scope) intbooleanbooleanbooleanbooleanabstract booleanabstract Refabstract RefvoidsetIgnoreComments(boolean b) voidsetIgnoreProcessingInstructions(boolean b) voidsetIgnoreWhitespace(boolean b) voidsetPrettyIndent(int i) voidsetPrettyPrinting(boolean b) abstract ObjecttoDefaultXmlNamespace(Context cx, Object uriValue) Construct namespace for default xml statement.
-
Constructor Details
-
XMLLib
public XMLLib()
-
-
Method Details
-
extractFromScopeOrNull
-
extractFromScope
-
bindToScope
-
isXMLName
-
nameRef
-
nameRef
-
escapeAttributeValue
Escapes the reserved characters in a value of an attribute.- Parameters:
value- Unescaped text- Returns:
- The escaped text
-
escapeTextValue
Escapes the reserved characters in a value of a text node.- Parameters:
value- Unescaped text- Returns:
- The escaped text
-
toDefaultXmlNamespace
Construct namespace for default xml statement. -
setIgnoreComments
public void setIgnoreComments(boolean b) -
setIgnoreWhitespace
public void setIgnoreWhitespace(boolean b) -
setIgnoreProcessingInstructions
public void setIgnoreProcessingInstructions(boolean b) -
setPrettyPrinting
public void setPrettyPrinting(boolean b) -
setPrettyIndent
public void setPrettyIndent(int i) -
isIgnoreComments
public boolean isIgnoreComments() -
isIgnoreProcessingInstructions
public boolean isIgnoreProcessingInstructions() -
isIgnoreWhitespace
public boolean isIgnoreWhitespace() -
isPrettyPrinting
public boolean isPrettyPrinting() -
getPrettyIndent
public int getPrettyIndent()
-