◆ __init__()
def open62541_XMLPreprocessor.preProcessDocument.__init__ |
( |
|
self, |
|
|
|
originXML |
|
) |
| |
◆ analyze()
def open62541_XMLPreprocessor.preProcessDocument.analyze |
( |
|
self | ) |
|
analyze()
analyze will gather information about the nodes and references contained in a XML File
to facilitate later preprocessing stages that adresss XML dependency issues
returns: No return value
Definition at line 107 of file open62541_XMLPreprocessor.py.
◆ clean()
def open62541_XMLPreprocessor.preProcessDocument.clean |
( |
|
self | ) |
|
◆ extractNamespaceURIs()
def open62541_XMLPreprocessor.preProcessDocument.extractNamespaceURIs |
( |
|
self | ) |
|
extractNamespaceURIs
minidom gobbles up <NamespaceUris></NamespaceUris> elements, without a decent
way to reliably access this dom2 <uri></uri> elements (only attribute xmlns= are
accessible using minidom). We need them for dereferencing though... This
function attempts to do just that.
returns: Nothing
Definition at line 74 of file open62541_XMLPreprocessor.py.
◆ finalize()
def open62541_XMLPreprocessor.preProcessDocument.finalize |
( |
|
self | ) |
|
◆ getNamespaceDependencies()
def open62541_XMLPreprocessor.preProcessDocument.getNamespaceDependencies |
( |
|
self | ) |
|
◆ getNamespaceId()
def open62541_XMLPreprocessor.preProcessDocument.getNamespaceId |
( |
|
self | ) |
|
namespaceId()
Counts the namespace IDs in all nodes of this XML and picks the most used
namespace as the numeric identifier of this data model.
returns: Integer ID of the most propable/most used namespace in this XML
Definition at line 141 of file open62541_XMLPreprocessor.py.
◆ getReferencedNamespaceUri()
def open62541_XMLPreprocessor.preProcessDocument.getReferencedNamespaceUri |
( |
|
self, |
|
|
|
nsId |
|
) |
| |
getReferencedNamespaceUri
returns an URL that hopefully corresponds to the nsId that was used to reference this model
return: URI string corresponding to nsId
Definition at line 166 of file open62541_XMLPreprocessor.py.
◆ getTargetXMLName()
def open62541_XMLPreprocessor.preProcessDocument.getTargetXMLName |
( |
|
self | ) |
|
◆ reassignNamespaceId()
def open62541_XMLPreprocessor.preProcessDocument.reassignNamespaceId |
( |
|
self, |
|
|
|
currentNsId, |
|
|
|
newNsId |
|
) |
| |
reassignNamespaceId
Iterates over all nodes in this document, find those in namespace currentNsId and changes them to newNsId.
returns: nothing
Definition at line 217 of file open62541_XMLPreprocessor.py.
◆ reassignReferencedNamespaceId()
def open62541_XMLPreprocessor.preProcessDocument.reassignReferencedNamespaceId |
( |
|
self, |
|
|
|
currentNsId, |
|
|
|
newNsId |
|
) |
| |
reassignReferencedNamespaceId
Iterates over all references in this document, find references to currentNsId and changes them to newNsId.
NodeIds themselves are not altered.
returns: nothing
Definition at line 203 of file open62541_XMLPreprocessor.py.
◆ containedNodes [1/2]
list open62541_XMLPreprocessor.preProcessDocument.containedNodes = [] |
|
static |
◆ containedNodes [2/2]
open62541_XMLPreprocessor.preProcessDocument.containedNodes |
◆ namespaceOrder [1/2]
list open62541_XMLPreprocessor.preProcessDocument.namespaceOrder = [] |
|
static |
◆ namespaceOrder [2/2]
open62541_XMLPreprocessor.preProcessDocument.namespaceOrder |
◆ namespaceQualifiers [1/2]
list open62541_XMLPreprocessor.preProcessDocument.namespaceQualifiers = [] |
|
static |
◆ namespaceQualifiers [2/2]
open62541_XMLPreprocessor.preProcessDocument.namespaceQualifiers |
◆ nodeset [1/2]
string open62541_XMLPreprocessor.preProcessDocument.nodeset = '' |
|
static |
◆ nodeset [2/2]
open62541_XMLPreprocessor.preProcessDocument.nodeset |
◆ originXML [1/2]
string open62541_XMLPreprocessor.preProcessDocument.originXML = '' |
|
static |
◆ originXML [2/2]
open62541_XMLPreprocessor.preProcessDocument.originXML |
◆ parseOK [1/2]
bool open62541_XMLPreprocessor.preProcessDocument.parseOK = False; |
|
static |
◆ parseOK [2/2]
open62541_XMLPreprocessor.preProcessDocument.parseOK |
◆ referencedNamesSpaceUris [1/2]
list open62541_XMLPreprocessor.preProcessDocument.referencedNamesSpaceUris = [] |
|
static |
◆ referencedNamesSpaceUris [2/2]
open62541_XMLPreprocessor.preProcessDocument.referencedNamesSpaceUris |
◆ referencedNodes [1/2]
list open62541_XMLPreprocessor.preProcessDocument.referencedNodes = [] |
|
static |
◆ referencedNodes [2/2]
open62541_XMLPreprocessor.preProcessDocument.referencedNodes |
◆ targetXML [1/2]
tuple open62541_XMLPreprocessor.preProcessDocument.targetXML = () |
|
static |
◆ targetXML [2/2]
open62541_XMLPreprocessor.preProcessDocument.targetXML |
The documentation for this class was generated from the following file: