C# Класс SWFProcessing.Swiffotron.Processor.XMLHelper

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ColorAttribute ( XPathNavigator nav, string name ) : Color?

Gets an HTML colour attribute value from an XML node

CreateValidationSettings ( string schemaName ) : XmlReaderSettings

For a given schema name (Named resource) this loads the schema XML and creates an XmlReaderSettings object which can be used to validate any XML read by the Swiffotron. This is called in the static initialiser.

IntegerAttribute ( XPathNavigator nav, string name ) : int?

Gets an integer attribute value from an XML node

LoadConfigurationXML ( Stream configXml ) : void

Loads a swiffotron config XML file, validates it and sets the current namespace manager so that we can do XPath queries in the 'con' namespace.

LoadSwiffotronXML ( Stream swiffotronXml ) : void

Loads a swiffotron job XML file, validates it and sets the current namespace manager so that we can do XPath queries in the 'swf' namespace.

MoveToFirstChildElement ( XPathNavigator nav ) : void

Convenience method to move a navigator to the first child element, rather than first child node, which could be text or something.

Select ( XPathNavigator top, string path ) : XPathNodeIterator
Select ( string path ) : XPathNodeIterator
SelectBoolean ( string path, bool defaultValue = null ) : bool
SelectChildren ( XPathNavigator top, string path ) : XPathNodeIterator
SelectNode ( XPathNavigator top, string path ) : XPathNavigator
SelectNode ( string path ) : XPathNavigator
SelectString ( string path, string defaultValue = null ) : string
SetContext ( SwiffotronContext ctx ) : void
SwfTagFromRef ( XPathNavigator referee ) : XPathNavigator

Find a swf xml node by a reference

TransformTagToMatrix ( XPathNavigator transform ) : Matrix

Creates a new position matrix from an XML declaration of one.

XMLHelper ( ) : System

Описание методов

ColorAttribute() публичный Метод

Gets an HTML colour attribute value from an XML node
public ColorAttribute ( XPathNavigator nav, string name ) : Color?
nav System.Xml.XPath.XPathNavigator A pointer to the node
name string The attribute to get
Результат Color?

CreateValidationSettings() публичный статический Метод

For a given schema name (Named resource) this loads the schema XML and creates an XmlReaderSettings object which can be used to validate any XML read by the Swiffotron. This is called in the static initialiser.
public static CreateValidationSettings ( string schemaName ) : XmlReaderSettings
schemaName string Named resource which is an XSD file.
Результат System.Xml.XmlReaderSettings

IntegerAttribute() публичный Метод

Gets an integer attribute value from an XML node
public IntegerAttribute ( XPathNavigator nav, string name ) : int?
nav System.Xml.XPath.XPathNavigator A pointer to the node
name string The attribute to get
Результат int?

LoadConfigurationXML() публичный Метод

Loads a swiffotron config XML file, validates it and sets the current namespace manager so that we can do XPath queries in the 'con' namespace.
public LoadConfigurationXML ( Stream configXml ) : void
configXml Stream
Результат void

LoadSwiffotronXML() публичный Метод

Loads a swiffotron job XML file, validates it and sets the current namespace manager so that we can do XPath queries in the 'swf' namespace.
public LoadSwiffotronXML ( Stream swiffotronXml ) : void
swiffotronXml Stream A stream feeding XML data.
Результат void

MoveToFirstChildElement() публичный Метод

Convenience method to move a navigator to the first child element, rather than first child node, which could be text or something.
public MoveToFirstChildElement ( XPathNavigator nav ) : void
nav System.Xml.XPath.XPathNavigator The navigator to move
Результат void

Select() публичный Метод

public Select ( XPathNavigator top, string path ) : XPathNodeIterator
top System.Xml.XPath.XPathNavigator
path string
Результат System.Xml.XPath.XPathNodeIterator

Select() публичный Метод

public Select ( string path ) : XPathNodeIterator
path string
Результат System.Xml.XPath.XPathNodeIterator

SelectBoolean() публичный Метод

public SelectBoolean ( string path, bool defaultValue = null ) : bool
path string
defaultValue bool
Результат bool

SelectChildren() публичный Метод

public SelectChildren ( XPathNavigator top, string path ) : XPathNodeIterator
top System.Xml.XPath.XPathNavigator
path string
Результат System.Xml.XPath.XPathNodeIterator

SelectNode() публичный Метод

public SelectNode ( XPathNavigator top, string path ) : XPathNavigator
top System.Xml.XPath.XPathNavigator
path string
Результат System.Xml.XPath.XPathNavigator

SelectNode() публичный Метод

public SelectNode ( string path ) : XPathNavigator
path string
Результат System.Xml.XPath.XPathNavigator

SelectString() публичный Метод

public SelectString ( string path, string defaultValue = null ) : string
path string
defaultValue string
Результат string

SetContext() публичный Метод

public SetContext ( SwiffotronContext ctx ) : void
ctx SwiffotronContext
Результат void

SwfTagFromRef() публичный Метод

Find a swf xml node by a reference
public SwfTagFromRef ( XPathNavigator referee ) : XPathNavigator
referee System.Xml.XPath.XPathNavigator A movieclip, or instance tag
Результат System.Xml.XPath.XPathNavigator

TransformTagToMatrix() публичный Метод

Creates a new position matrix from an XML declaration of one.
public TransformTagToMatrix ( XPathNavigator transform ) : Matrix
transform XPathNavigator The navigator pointing to the XML transform element.
Результат Matrix

XMLHelper() публичный Метод

public XMLHelper ( ) : System
Результат System