Namespaces Property

A collection of namespaces in the current namespace stack.

Syntax

public var namespaces: Array<XMLNamespace> {
get {...} }

Remarks

This property contains a list of the XML namespaces that exist in the current Atom channel. The general Atom protocol allows non-standard fields to be added through XML namespaces.

When parsing an Atom feed retrieved through the GetFeed method, the class will store all properties that are standard in version 2.0 of the Atom protocol, regardless of the version given by the feed. For non-standard properties, it will verify that the property has a namespace and that the namespace is defined within the Atom feed. If a property's definition cannot be found, the class . Non-standard fields can be retrieved through the GetProperty method.

When using the WriteFile method to generate an Atom feed that contains non-standard properties you must use the SetProperty method.

Please see the GetProperty and SetProperty methods for details on argument syntax.

If the Atom URL is not found in the namespace collection, it will be added as the default namespace when generating a feed. That namespace is "http://www.w3.org/2005/Atom".

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 macOS Edition - Version 20.0 [Build 8307]