CreateNewXMLDocument XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   CreateNewXMLDocument
(   XMLHandle :LONGINT;
    rootElementName :DYNARRAY[] of CHAR
) :INTEGER ;

Python:

def  vs.CreateNewXMLDocument(XMLHandle, rootElementName):
   return INTEGER

Description:

Creates a new XML document.

説明

新しいXML書類を作成します。



  DeleteAttribute XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   DeleteAttribute
(   XMLHandle :LONGINT;
    elementPath :DYNARRAY[] of CHAR;
    attribute :DYNARRAY[] of CHAR
) :INTEGER ;

Python:

def  vs.DeleteAttribute(XMLHandle, elementPath, attribute):
   return INTEGER

Description:

Deletes an attribute

説明

属性を一つ削除します。



  DeleteCDATA XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   DeleteCDATA
(   XMLHandle :LONGINT;
    elementPath :DYNARRAY[] of CHAR
) :INTEGER ;

Python:

def  vs.DeleteCDATA(XMLHandle, elementPath):
   return INTEGER

Description:

Deletes a CDATA section

説明

CDATAセクションを削除します



  DeleteElement XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   DeleteElement
(   XMLHandle :LONGINT;
    elementPath :DYNARRAY[] of CHAR
) :INTEGER ;

Python:

def  vs.DeleteElement(XMLHandle, elementPath):
   return INTEGER

Description:

Deletes the element at the location specified by the path.

説明

パスで指定された位置の要素を削除します。



  FindAttribute XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   FindAttribute
(   XMLHandle :LONGINT;
    startElementPath :DYNARRAY[] of CHAR;
    searchAttribute :DYNARRAY[] of CHAR;
  VAR  foundPath :DYNARRAY[] of CHAR;
  VAR  attributeValue :DYNARRAY[] of CHAR
) :INTEGER ;

Python:

def  vs.FindAttribute(XMLHandle, startElementPath, searchAttribute):
   return (INTEGER, foundPath, attributeValue)

Description:

Finds the specified attribute by name.

説明

名前で特定の属性を検索します。



  FindElement XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   FindElement
(   XMLHandle :LONGINT;
    startElementPath :DYNARRAY[] of CHAR;
    searchElement :DYNARRAY[] of CHAR;
  VAR  foundPath :DYNARRAY[] of CHAR
) :INTEGER ;

Python:

def  vs.FindElement(XMLHandle, startElementPath, searchElement):
   return (INTEGER, foundPath)

Description:

Finds the specified element by name.

説明

名前で特定の要素を検索します。



  GetAttributeValue XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   GetAttributeValue
(   XMLHandle :LONGINT;
    elementPath :DYNARRAY[] of CHAR;
    attribute :DYNARRAY[] of CHAR;
  VAR  value :STRING
) :INTEGER ;

Python:

def  vs.GetAttributeValue(XMLHandle, elementPath, attribute):
   return (INTEGER, value)

Description:

Gets a value of an attribute.

説明

属性の値を取得します



  GetCDATA XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   GetCDATA
(   XMLHandle :LONGINT;
    elementPath :DYNARRAY[] of CHAR;
  VAR  returnVal :DYNARRAY[] of CHAR
) :INTEGER ;

Python:

def  vs.GetCDATA(XMLHandle, elementPath):
   return (INTEGER, returnVal)

Description:

Gets CDATA section.

説明

CDATAセクションを取得します



  GetElementValue XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   GetElementValue
(   XMLHandle :LONGINT;
    elementPath :DYNARRAY[] of CHAR;
  VAR  value :DYNARRAY[] of CHAR
) :INTEGER ;

Python:

def  vs.GetElementValue(XMLHandle, elementPath):
   return (INTEGER, value)

Description:

Gets a value of an element, given a path.

説明

パスで示される要素の値を取得します。



  GetFirstChild XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   GetFirstChild
(   XMLHandle :LONGINT;
    elementPath :DYNARRAY[] of CHAR;
  VAR  value :DYNARRAY[] of CHAR
) :INTEGER ;

Python:

def  vs.GetFirstChild(XMLHandle, elementPath):
   return (INTEGER, value)

Description:

Returns first child of given element.

説明

与えられた要素の最初の子を返します



  GetNextElement XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   GetNextElement
(   XMLHandle :LONGINT;
    elementPath :DYNARRAY[] of CHAR;
  VAR  value :DYNARRAY[] of CHAR
) :INTEGER ;

Python:

def  vs.GetNextElement(XMLHandle, elementPath):
   return (INTEGER, value)

Description:

Returns the next element (sibling) of the given element.

説明

与えられた要素の次(兄弟)の要素を返します。



  GetPreviousElement XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   GetPreviousElement
(   XMLHandle :LONGINT;
    elementPath :DYNARRAY[] of CHAR;
  VAR  value :DYNARRAY[] of CHAR
) :INTEGER ;

Python:

def  vs.GetPreviousElement(XMLHandle, elementPath):
   return (INTEGER, value)

Description:

Returns the previous element (sibling) of the given element.

説明

与えられた要素の前(兄弟)の要素を返します。



  InitXML XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   InitXML
:LONGINT ;

Python:

def  vs.InitXML():
   return LONGINT

Description:

Initializes the XML System

説明

XMLシステムを初期化します



  ReadXMLFile XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   ReadXMLFile
(   XMLHandle :LONGINT;
    whichPath :INTEGER;
    filename :DYNARRAY[] of CHAR
) :INTEGER ;

Python:

def  vs.ReadXMLFile(XMLHandle, whichPath, filename):
   return INTEGER

Description:

Opens and reads an XML file.

説明

XMLファイルを開いて読み込む



  ReadXMLMemory XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   ReadXMLMemory
(   XMLHandle :LONGINT;
    XMLData :DYNARRAY[] of CHAR
) :INTEGER ;

Python:

def  vs.ReadXMLMemory(XMLHandle, XMLData):
   return INTEGER

Description:

Parses XML data in memory.

説明

メモリ上のXMLデータをパースします



  ReleaseXML XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   ReleaseXML
( XMLHandle:LONGINT ) :INTEGER ;

Python:

def  vs.ReleaseXML(XMLHandle):
   return INTEGER

Description:

Releases XML parser internal memory.

説明

XMLパーサが利用する内部メモリを解放します



  SetAttributeValue XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   SetAttributeValue
(   XMLHandle :LONGINT;
    elementPath :DYNARRAY[] of CHAR;
    attribute :DYNARRAY[] of CHAR;
    value :DYNARRAY[] of CHAR
) :INTEGER ;

Python:

def  vs.SetAttributeValue(XMLHandle, elementPath, attribute, value):
   return INTEGER

Description:

Sets a value of an attribute.

説明

属性の値を設定します



  SetCDATA XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   SetCDATA
(   XMLHandle :LONGINT;
    elementPath :DYNARRAY[] of CHAR;
    data :DYNARRAY[] of CHAR
) :INTEGER ;

Python:

def  vs.SetCDATA(XMLHandle, elementPath, data):
   return INTEGER

Description:

Sets CDATA section.

説明

CDATAセクションを設定する.



  SetElementValue XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   SetElementValue
(   XMLHandle :LONGINT;
    elementPath :DYNARRAY[] of CHAR;
    value :DYNARRAY[] of CHAR
) :INTEGER ;

Python:

def  vs.SetElementValue(XMLHandle, elementPath, value):
   return INTEGER

Description:

Sets a value of an element, given a path.

説明

与えられたパスの要素の値を設定します。.



  WriteXMLFile XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   WriteXMLFile
(   XMLHandle :LONGINT;
    whichPath :INTEGER;
    filename :DYNARRAY[] of CHAR
) :INTEGER ;

Python:

def  vs.WriteXMLFile(XMLHandle, whichPath, filename):
   return INTEGER

Description:

Writes an XML file.

説明

XMLファイルを書き出す。



  WriteXMLMemory XML 
Vectorworks 2011

VectorScript Declaration:

FUNCTION   WriteXMLMemory
(   XMLHandle :LONGINT;
  VAR  XMLData :DYNARRAY[] of CHAR
) :INTEGER ;

Python:

def  vs.WriteXMLMemory(XMLHandle):
   return (INTEGER, XMLData)

Description:

Creates XML data from an internal DOM tree.

説明

内部のDOMツリーからXMLデータを作成します