ProcessMIX Guide
  • Platform Overview
    • Introduction
    • Platform Purpose
    • Main Concepts
      • Organization Structure
      • Visual Language
      • Project Development Environment (IDE)
      • Deployment and Integration
      • Administration and Troubleshooting
    • First Steps
    • Change Log
      • 5.0.0
      • 5.0.5
      • 5.0.5.1
      • 5.0.5.2
      • 5.0.5.3
      • 5.0.5.4
  • Language Reference Guide
    • Overview
    • Data Structures and Types
      • Core Types (pdk.core)
      • Dictionary (pdk.asset.dictionary)
      • Scorecard (pdk.asset.scorecard)
      • Blockchain (pdk.blockchain)
      • Exceptions (pdk.ex)
      • Input/Output (pdk.io)
      • JSON Web Token (pdk.jwt)
      • Networking (pdk.net)
      • HTTP (pdk.net.http)
      • SOAP/Web Services (pdk.net.soap)
      • XML/DOM (pdk.net.xml)
      • S3 (pdk.s3)
      • SQL (pdk.sql)
      • Postgres (pdk.db.postgre)
      • Util (pdk.util)
      • Default Data Structure Field Values
    • Flows
      • Variables
        • Local Flow Variables
        • Node Variables
      • Flow Node Types
        • Core Nodes
          • In
          • Out
          • Assign
          • If
          • Switch
          • Iterator
          • Function Call
          • Subflow
          • Raise Exception
          • Exception Handler
          • Validator
        • Connector Nodes
          • Database Begin Transaction
          • Database Commit Transaction
          • Database Rollback Transaction
          • Database Query Executor
          • EVM Blockchain Functions
          • EVM Blockchain Smart Contract Functions
          • REST Service Executor
          • SOAP Service Executor
          • S3 Connector
          • SMB Connector
      • Expressions
      • Built-In Functions
        • Expression functions
          • pdk.util.Any
          • pdk.util.Array
          • pdk.util.Blockchain
          • pdk.util.Cast
          • pdk.util.Codec
          • pdk.util.Crypto
          • pdk.util.Date
          • pdk.util.File
          • pdk.util.Json
          • pdk.util.JWT
          • pdk.util.Map
          • pdk.util.Math
          • pdk.util.String
          • pdk.util.Util
        • Node functions
          • pdk.flow.Any
          • pdk.flow.Array
          • pdk.flow.File
          • pdk.flow.JsonArray
          • pdk.flow.JsonObject
          • pdk.flow.HttpRequest
          • pdk.flow.HttpResponse
          • pdk.flow.Logger
          • pdk.flow.Map
          • pdk.flow.Xml
            • pdk.flow.xml.XmlAttr
            • pdk.flow.xml.XmlElement
            • pdk.flow.xml.XmlNode
            • pdk.flow.xml.XmlDocument
            • pdk.flow.xml.XmlDocumentType
            • pdk.flow.xml.XmlDOMConfiguration
            • pdk.flow.xml.XmlDOMImplementation
            • pdk.flow.xml.XmlProcessingInstruction
            • pdk.flow.xml.XmlTypeInfo
            • pdk.flow.xml.XmlCharacterData
            • pdk.flow.xml.XmlText
            • pdk.flow.xml.XmlNamedNodeMap
          • pdk.node.BlockchainEth
          • pdk.node.S3
          • pdk.node.Smb
      • Exceptions
        • Checked Exceptions
        • Runtime Exceptions
    • Assets
      • Dictionary
      • Decision Table
      • Scorecard
      • PMML
    • Connectors
      • DB Connector
        • Prepared Query
        • Dynamic Query
        • Query input parameters
        • Stored Procedure
      • REST Connector
      • SOAP Connector
      • S3 Connector
      • SMB Connector
      • EVM Blockchain Connector
    • Global Variables
    • Appendices
      • Overview of Database Transactions
      • Reserved Words
  • Project Development Environment (IDE)
    • Project Explorer Panel
    • Flow Builder
    • Flow Node Editor
    • Data Structure Builder
    • Connector Builders
      • REST Connector Builder
      • SOAP Connector Builder
      • DB (Database) Connector Builder
      • EVM Blockchain Connectors Builder
      • S3 Connector Builder
    • Asset Builders
      • Dictionary Builder
      • Decision Table Builder
      • Scorecard Builder
      • PMML Asset Builder
    • Global Variables Panel
    • Expression Editor
    • Project Deployment and Execution
    • Cron Expression Generator
    • Test Helper
    • Debugging the Project
    • DB transactions
    • Team Collaboration Tools
      • Version Control
      • Conflict Resolver
    • Selectors
    • Error Panel
    • Local History
  • Home and Administration Guide
    • Organization and Subscription
    • Organization Team
    • Repositories and Projects
    • Environments
    • Deployments
    • Database Provisioning
    • Roles and Permissions
  • Logs and Troubleshooting
    • Request/Call Logs
    • Deployment Logs
    • Application Logs
  • Appendix: Example Project
    • Risk Mitigation Solution
Powered by GitBook
On this page
  • All functions
  • getName
  • getSpecified
  • getValue
  • setValue
  • getOwnerElement
  • getSchemaTypeInfo
  • isId
  1. Language Reference Guide
  2. Flows
  3. Built-In Functions
  4. Node functions
  5. pdk.flow.Xml

pdk.flow.xml.XmlAttr

contains functions to operate with XML Attr variables

Previouspdk.flow.XmlNextpdk.flow.xml.XmlElement

Last updated 1 year ago

This functions are based on Java org.w3c.dom package classes.

You can always rely on Java documentation and examples!

You can use functions from the package for variables of type , as the structure the .

objects inherit the structure, but since they are not actually child nodes of the element they describe, the DOM does not consider them part of the document tree. Thus, the Node attributes parentNode, previousSibling, and nextSibling have a null value for objects. The DOM takes the view that attributes are properties of elements rather than having a separate identity from the elements they are associated with; this should make it more efficient to implement such features as default attributes associated with all elements of a given type. Furthermore, nodes may not be immediate children of a . However, they can be associated with nodes contained within a . In short, users and implementors of the DOM need to be aware that nodes have some things in common with other objects inheriting the structure, but they also are quite distinct.

The attribute's effective value is determined as follows: if this attribute has been explicitly assigned any value, that value is the attribute's effective value; otherwise, if there is a declaration for this attribute, and that declaration includes a default value, then that default value is the attribute's effective value; otherwise, the attribute does not exist on this element in the structure model until it has been explicitly added. Note that the Node.nodeValue attribute on the instance can also be used to retrieve the string version of the attribute's value(s).

If the attribute was not explicitly given a value in the instance document but has a default value provided by the schema associated with the document, an attribute node will be created with specified set to false. Removing attribute nodes for which a default value is defined in the schema generates a new attribute node with the default value and specified set to false. If validation occurred while invoking , attribute nodes with specified equals to false are recomputed according to the default attribute values provided by the schema. If no default value is associate with this attribute in the schema, the attribute node is discarded.

In XML, where the value of an attribute can contain entity references, the child nodes of the node may be either or nodes.

The following table gives some examples of the relations between the attribute value in the original document (parsed attribute), the value as exposed in the DOM, and the serialization of the value:

Examples
Parsed attribute value
Initial Attr.value
Serialized attribute value

Character reference

Built-in character entity

Literal newline between

Normalized newline between

All functions


getName

Arguments:

Result:

Possible exceptions

Example:

XML Document

<order id="1">
    <book id="b_1" name="Harry Potter and the Philosopher's Stone"></book>
</order>
attr :: pdk.net.xml.Attr -> [id="1"]

XmlAttr.getName(attr) :: pdk.core.String ->
output = "id"

getSpecified

Arguments:

Result:

Possible exceptions

Example:

XML Document

<order id="1">
    <book id="b_1" name="Harry Potter and the Philosopher's Stone"></book>
</order>
attr :: pdk.net.xml.Attr -> [id="1"]

XmlAttr.getSpecified(attr) :: pdk.core.Boolean ->
output = true

getValue

Arguments:

Result:

Possible exceptions

Example:

XML Document

<order id="1">
    <book id="b_1" name="Harry Potter and the Philosopher's Stone"></book>
</order>
attr :: pdk.net.xml.Attr -> [id="1"]

XmlAttr.getValue(attr) :: pdk.core.String ->
output = "1"

setValue

Arguments:

Result:

  • No variable is returned. The input attribute value has been changed

Possible exceptions

Example:

XML Document

<order id="1">
    <book id="b_1" name="Harry Potter and the Philosopher's Stone"></book>
</order>
attr :: pdk.net.xml.Attr -> [id="1"]
newValue :: pdk.core.String = "2"

XmlAttr.setValue(attr, newValue) :: Void ->
attr -> [id="2"]

getOwnerElement

Arguments:

Result:

Possible exceptions

Example:

XML Document

<order id="1">
    <book id="b_1" name="Harry Potter and the Philosopher's Stone"></book>
</order>
attr :: pdk.net.xml.Attr -> [id="1"]

XmlAttr.getOwnerElement(attr) :: pdk.net.xml.Element ->
output = <order id="1">

getSchemaTypeInfo

Arguments:

Result:

Possible exceptions


isId

Arguments:

Result:

Possible exceptions

Returns the name of the input attribute. If result of function is different from null, this attribute is a qualified name.

attribute ::

output ::

- throws if the input attribute is NULL

True if this attribute was explicitly given a value in the instance document, false otherwise. If the application changed the value of this attribute node (even if it ends up having the same value as the default value) then it is set to true. The implementation may handle attributes with default values from other schemas similarly but applications should use function to guarantee this information is up-to-date.

attribute ::

output ::

- throws if the input attribute is NULL

On retrieval, the value of the attribute is returned as a string. Character and general entity references are replaced with their values. See also the function .

attribute ::

output ::

- throws if the input attribute is NULL

Creates a node with the unparsed contents of the string, i.e. any characters that an XML processor would recognize as markup are instead treated as literal text. See also the function . Some specialized implementations, such as some [] implementations, may do normalization automatically, even after mutation; in such case, the value on retrieval may differ from the value on setting.

attribute ::

newValue ::

- throws if the input attribute is NULL

- NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly

The node this attribute is attached to or null if this attribute is not in us

attribute ::

output ::

- throws if the input attribute is NULL

The type information associated with this attribute. While the type information contained in this attribute is guarantee to be correct after loading the document or invoking function, schemaTypeInfo may not be reliable if the node was moved.

attribute ::

output ::

- throws if the input attribute is NULL

Returns whether this attribute is known to be of type ID (i.e. to contain an identifier for its owner element) or not. When it is and its value is unique, the ownerElement of this attribute can be retrieved using the method

attribute ::

output ::

- throws if the input attribute is NULL

"x&#178;=5"
"x²=5"
"x&#178;=5"
"y&lt;6"
"y<6"
"y&lt;6"
"x=5&#10;y=6"
"x=5 y=6"
"x=5&#10;y=6"
"x=5
 y=6"
"x=5 y=6"
"x=5 y=6"
https://docs.oracle.com/en/java/javase/11/docs/api/java.xml/org/w3c/dom/package-summary.html
pdk.floe.xml.XmlNode
getName
getSpecified
getValue
setValue
getOwnerElement
getSchemaTypeInfo
isId
SVG 1.1
NullPointerException
NullPointerException
NullPointerException
NullPointerException
NullPointerException
NullPointerException
NullPointerException
pdk.core.String
pdk.core.Boolean
pdk.core.String
pdk.core.String
pdk.core.Boolean
extends
pdk.net.xml.Attr
pdk.net.xml.Attr
pdk.net.xml.Attr
pdk.net.xml.Attr
DOMException
Element
pdk.net.xml.Attr
pdk.net.xml.Element
pdk.net.xml.Attr
pdk.net.xml.TypeInfo
pdk.net.xml.Attr
Attr
pdk.net.xml.Attr
pdk.net.xml.Node
Attr
Node
Attr
Attr
DocumentFragment
Element
DocumentFragment
Attr
Node
Attr
Attr
Text
EntityReference
Text
XmlNode.localName
XmlElement.getAttribute
XmlElement.setAttribute
XmlDocument.normalizeDocument()
XmlDocument.normalizeDocument
XmlDocument.normalizeDocument
XmlDocument.getElementById