Udostępnij za pośrednictwem


DocumentBuilderFactory.IgnoringElementContentWhitespace Property

Definition

Indicates whether or not the factory is configured to produce parsers which ignore ignorable whitespace in element content. -or- Specifies that the parsers created by this factory must eliminate whitespace in element content (sometimes known loosely as 'ignorable whitespace') when parsing XML documents (see XML Rec 2.

public virtual bool IgnoringElementContentWhitespace { [Android.Runtime.Register("isIgnoringElementContentWhitespace", "()Z", "GetIsIgnoringElementContentWhitespaceHandler")] get; [Android.Runtime.Register("setIgnoringElementContentWhitespace", "(Z)V", "GetSetIgnoringElementContentWhitespace_ZHandler")] set; }
[<get: Android.Runtime.Register("isIgnoringElementContentWhitespace", "()Z", "GetIsIgnoringElementContentWhitespaceHandler")>]
[<set: Android.Runtime.Register("setIgnoringElementContentWhitespace", "(Z)V", "GetSetIgnoringElementContentWhitespace_ZHandler")>]
member this.IgnoringElementContentWhitespace : bool with get, set

Property Value

true if the factory is configured to produce parsers which ignore ignorable whitespace in element content; false otherwise.

Attributes

Remarks

Property getter documentation:

Indicates whether or not the factory is configured to produce parsers which ignore ignorable whitespace in element content.

Java documentation for javax.xml.parsers.DocumentBuilderFactory.isIgnoringElementContentWhitespace().

Property setter documentation:

Specifies that the parsers created by this factory must eliminate whitespace in element content (sometimes known loosely as 'ignorable whitespace') when parsing XML documents (see XML Rec 2.10). Note that only whitespace which is directly contained within element content that has an element only content model (see XML Rec 3.2.1) will be eliminated. Due to reliance on the content model this setting requires the parser to be in validating mode. By default the value of this is set to false.

Java documentation for javax.xml.parsers.DocumentBuilderFactory.setIgnoringElementContentWhitespace(boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to