C# 클래스 SWFProcessing.Swiffotron.Processor.XMLHelper

파일 보기 프로젝트 열기: WeeWorld/Swiffotron 1 사용 예제들

공개 메소드들

메소드 설명
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