XElements Property

Collection of elements in the current EDI segment.

Syntax

public EDIElementList XElements { get; }
Public ReadOnly Property XElements As EDIElementList

Remarks

When BuildDOM is set to bdEntireDocument or bdTransaction, this property will be populated when XPath is set to a valid segment within the document.

When BuildDOM is set to bdNone, this property will be populated for each event with the parsed out elements for that particular segment.

This collection is indexed from 0 to Count - 1.

Example (Loop through all Elements of an Segment)


For i = 0 to EDIReader.XElements.Count - 1
	DoSomethingWith(EDIReader.XElements(i).Name, EDIReader.XElements(i).Value)
Next i

This property is read-only and not available at design time.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 .NET Edition - Version 20.0 [Build 8203]