Namespaces Property

A collection of namespaces in the current namespace stack.

Syntax

public XMLNamespaceList getNamespaces();
public void setNamespaces(XMLNamespaceList namespaces);

Remarks

This property contains a list of the XML namespaces that exist in the current RSS channel. Each version of the RSS protocol defines a specific set of standard RSS feed properties. However, the general RSS protocol allows non-standard fields to be added through XML namespaces.

When parsing an RSS feeds retrieved through the GetFeed method, the class will store all properties that are standard in version 2.0 of the RSS 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 RSS feed. If a property's definition cannot be found, the class throws an exception. Non-standard fields can be retrieved through the GetProperty method.

When using the WriteFile method to generate an RSS feed that contains non-standard properties you must use the SetProperty method to set each non-standard property. The class will ignore any property whose namespace is not defined when generating the RSSData.

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

This property is not available at design time.

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