• Return to Home Page
    • Solutions
      Industries
      • Academic and Research
      • Aerospace, Defense, and Government
      • Electronics
      • Energy
      • Industrial Machinery
      • Life Sciences
      • Semiconductor
      • Transportation
      Product Life Cycles
      • Design and Prototype
      • Validation
      • Production
      Focus Areas
      • 5G and 6G Technology
      • ADAS and Autonomous Driving Testing
      • Artificial Intelligence
      • Electric Vehicle Test
      • Lifecycle Analytics
      • Radar and Electronic Warfare
      • Space Launch and Exploration
      • Validation Lab Innovations
      See our approach to solutions
      Get a Helping Hand
      From troubleshooting technical issues and product recommendations, to quotes and orders, we’re here to help.
      Contact Us
    • Products
      Software
      View All Software
      Test Automation
      • LabVIEW
      • LabVIEW+ Suite
      • TestStand (Test Execution)
      • VeriStand (HIL Test Development)
      Free Interactive Test Software
      • FlexLogger (for DAQ hardware)
      • InstrumentStudio (for PXI hardware)
      Test Analytics and Operations
      • DIAdem (for Analysis and Visualization)
      • SystemLink (Test Operations)
      • OptimalPlus GO (Manufacturing Analytics)
      SERVICES
      View All Services
      • Repair Services
      • Calibration
      • Training Courses
      HARDWARE
      View All Hardware
      Data Acquisition and Control
      • Learn About DAQ
      • New DAQ Hardware (mioDAQ)
      • Multifunction I/O
      • Voltage
      • Digital I/O
      • Temperature
      • Sound and Vibration
      • Current
      • Strain, Pressure, and Force
      Communication Interfaces
      • Software Defined Radios
      • GPIB, Serial, and Ethernet
      • Industrial Communication Buses
      • Vehicle Communication Buses
      • Avionics Communication Buses
      PXI Instrumentation
      • Switches
      • Oscilloscopes
      • Digital Multimeters
      • Waveform Generators
      • RF Signal Generators
      • SMUs and LCR Meters
      • Power Supplies and Loads
      • Vector Signal Transceivers
      • FlexRIO Instruments
      Accessories
      • Power Accessories
      • Connectors
      • Cables
      • Sensors
      RESOURCES
      • Ordering Resources
      • Distributors
      • System Advisors
      See all products
      CompactDAQ

      Modular Data Acquisition

      CompactRIO

      Distributed Measurement and Control

      PXI

      High-Performance Test

      LabVIEW+ Suite

      Automated Test System Development Software

    • Perspectives
      Perspectives

      Perspectives showcases how NI sees what’s next in the world of test and technology.

      View all articles
      Charting the Course for Test Development with LabVIEW
      LabVIEW remains key in test, promising speed, efficiency, and new features with NI’s investment in core tech, community, and integration.
      Read our featured article
    • Support
      Resources
      View All Support Resources
      • Software Downloads
      • Register and Activate
      • Product Documentation
      • Release Notes
      • Training Courses
      • On-Demand Learning
      • KnowledgeBase
      • Code Examples
      Request Support

      You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.

      Open a service request
      Popular Software Downloads
      See all Software Product Downloads
      icon of LabVIEW logo
      LabVIEW
      icon of Multisim logo
      Multisim
      icon of Academic Volume License logo
      Academic Volume License
      Popular Driver Downloads
      See all Driver Software Downloads
      • NI-DAQmx

        Provides support for NI data acquisition and signal conditioning devices. 

      • NI-VISA

        Provides support for Ethernet, GPIB, serial, USB, and other types of instruments. 

      • NI-488.2

        Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports. 

    • Community
    • Partners
    • Contact Usflag representing the selected language
    • My Account
    • Search
  • Cart
    • Solutions
      • Back
      • Industries
      • Academic and Research
      • Aerospace, Defense, and Government
      • Electronics
      • Energy
      • Industrial Machinery
      • Life Sciences
      • Semiconductor
      • Transportation
      • Product Life Cycles
      • Design and Prototype
      • Validation
      • Production
      • Focus Areas
      • 5G and 6G Technology
      • ADAS and Autonomous Driving Testing
      • Artificial Intelligence
      • Electric Vehicle Test
      • Lifecycle Analytics
      • Radar and Electronic Warfare
      • Space Launch and Exploration
      • Validation Lab Innovations
      • See our approach to solutions
    • Products
      • Back
      • Software
      • View All Software
      • Test Automation
      • LabVIEW
      • LabVIEW+ Suite
      • TestStand (Test Execution)
      • VeriStand (HIL Test Development)
      • Free Interactive Test Software
      • FlexLogger (for DAQ hardware)
      • InstrumentStudio (for PXI hardware)
      • Test Analytics and Operations
      • DIAdem (for Analysis and Visualization)
      • SystemLink (Test Operations)
      • OptimalPlus GO (Manufacturing Analytics)
      • SERVICES
      • View All Services
      • Repair Services
      • Calibration
      • Training Courses
      • HARDWARE
      • View All Hardware
      • Data Acquisition and Control
      • Learn About DAQ
      • New DAQ Hardware (mioDAQ)
      • Multifunction I/O
      • Voltage
      • Digital I/O
      • Temperature
      • Sound and Vibration
      • Current
      • Strain, Pressure, and Force
      • Communication Interfaces
      • Software Defined Radios
      • GPIB, Serial, and Ethernet
      • Industrial Communication Buses
      • Vehicle Communication Buses
      • Avionics Communication Buses
      • PXI Instrumentation
      • Switches
      • Oscilloscopes
      • Digital Multimeters
      • Waveform Generators
      • RF Signal Generators
      • SMUs and LCR Meters
      • Power Supplies and Loads
      • Vector Signal Transceivers
      • FlexRIO Instruments
      • Accessories
      • Power Accessories
      • Connectors
      • Cables
      • Sensors
      • RESOURCES
      • Ordering Resources
      • Distributors
      • System Advisors
      • See all products
    • Perspectives
    • Support
      • Back
      • Resources
      • View All Support Resources
      • Software Downloads
      • Register and Activate
      • Product Documentation
      • Release Notes
      • Training Courses
      • On-Demand Learning
      • KnowledgeBase
      • Code Examples
      • Popular Software Downloads
      • See all Software Product Downloads
      • icon of LabVIEW logo
      • icon of Multisim logo
      • icon of Academic Volume License logo
      • Popular Driver Downloads
      • See all Driver Software Downloads
      • NI-DAQmx
      • NI-VISA
      • NI-488.2
      • Request Support
      • You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.Open a service request
    • Community
    • Partners
    • Contact Us
    • Account
Skip to main contentSkip to search
Product Documentation - NIProduct Documentation - NI
Product Documentation - NI
  • Home
  • All Manuals
  • Log in

LabVIEW Programming Reference Manual

Table of Contents
  • LabVIEW Programming Reference Manual
  • Functions
  • Property and Method Reference
  • LabVIEW Environment Reference
  • LabVIEW Dialog Box Reference
  • Error Codes and Messages
Table of Contents

Element Methods

Download PDF
Selected SectionSelected Section and Subsection(s)Entire Manual
  • Updated2026-02-04
  • 2 minute(s) read
    • LabVIEW
    • API Reference
    • LabVIEW G

  • Get Elements By Tag Name Array
    Returns an array of nodes of all descendant elements with a tag name that you specify, in the order in which a preorder traversal of the Element tree encounters the nodes.
  • Get Attribute
    Retrieves an attribute value by name.
  • Get Attribute Node
    Retrieves an attribute by name.
  • Set Attribute
    Adds an attribute. If an attribute with the name you specify already exists in the element, its value changes to that of the Value parameter.
  • Set Attribute Node
    Adds an attribute. If an attribute with the name you specify already exists in the element, the new attribute replaces the existing attribute. If the new attribute replaces an attribute with the same name, the method returns the previously existing attribute as Old Attribute.
  • Remove Attribute
    Removes an attribute by name. If the removed attribute has a default value it is immediately replaced.
  • Remove Attribute Node
    Removes an attribute that you specify. If the removed attribute has a default value it is immediately replaced.
  • Get Elements By Tag Name
    Returns a list of all descendant elements with a tag name you specify, in the order that a preorder traversal of the Element tree would encounter the nodes.
  • Get Attribute NS
    Retrieves an attribute value by local name and namespace URI.
  • Set Attribute NS
    Adds a new attribute. If an attribute with the same local name and namespace URI already exists on the element, the prefix of the existing element changes to the prefix part of the qualified name indicated in the Qualified Name parameter, and its value changes to the value indicated in the Value parameter.
  • Remove Attribute NS
    Removes an attribute by local name and namespace URI. If the removed attribute has a default value it is immediately replaced.
  • Get Attribute Node NS
    Retrieves an attribute by local name and namespace URI.
  • Set Attribute Node NS
    Adds a new attribute. If an attribute with the same local name and namespace URI already exists in the element, the new attribute replaces it.
  • Get Elements By Tag Name NS Array
    Returns an array of nodes of elements with a local name and namespace URI you specify, in the order that a preorder traversal of the Document tree would encounter them, starting from a node you specify.
  • Get Elements By Tag Name NS
    Returns a list of elements with a local name and namespace URI you specify, in the order that a preorder traversal of the Document tree would encounter them, starting from a node you specify.
  • Has Attribute
    Returns TRUE when an element contains an attribute with a name you specify, or if the attribute has a default value.
  • Has Attribute NS
    Returns TRUE when an element contains an attribute with a local name and namespace URI you specify, or if the attribute has a default value.
  • Set XML
    Sets the XML text of an element. If the element already has a value, the value of the element changes to that of the XML String parameter.

Previous

No previous section

Next

No next section

Previous

No previous section

Next

No next section
  • ©2008 - 2026 ACME Corporation. All Rights Reserved
  • Privacy PolicyTerms of Use
  • Powered By
    Zoomin_Logo
Solutions
  • Academic & Research
  • Aerospace, Defense, & Government
  • Electronics
  • Energy
  • Industrial Machinery
  • Life Sciences
  • Semiconductor
  • Transportation
Orders
  • NI Distribution Partners
  • Order Status and History
  • Retrieve a Quote
  • Terms of Service
  • Order by Part Number or Request a Quote
Company
  • NI is now part of Emerson
  • About
  • Emerson Careers
  • Newsroom
  • Supply Chain & Quality
  • Events
Support
  • Downloads
  • Product Documentation
  • Discussion Forums
  • Activate a Product
  • Submit a Service Request
  • Site Feedback
FacebookTwitterLinkedInYouTubeInstagram
LEGAL | IMPRINT | PRIVACY | Cookie Settings
© NATIONAL INSTRUMENTS CORP. ALL RIGHTS RESERVED.