Hello there,
Is there anyone out there who has experience in browsing through an XML document using VB script ?
What I want is to browse through all records within a certain segment.
I want to select segment "E1EDP01" and browse through all
items within this segment in a for loop construction.
The XML layout is like this:
TOP_SEG
E1DP01
E1DP02
The segment E1DP01 is on the same level as TOP_SEG. It is not a child of TOP_SEG.
We tried the following code but is does not work:
set segHeader = theIDoc.Segments.Top
set SegCurrent = segHeader.NextSibling("E1EDP01")
for each SegCurrent in segHeader.NextTwin("E1EDP01")
set Werks = SegCurrent("WERKS")
next
The XML comes from a SAP system (IDOC ORDERS05) and we need to parse it.
Hope someone can help me.
Greetings,
Pascal.
Is there anyone out there who has experience in browsing through an XML document using VB script ?
What I want is to browse through all records within a certain segment.
I want to select segment "E1EDP01" and browse through all
items within this segment in a for loop construction.
The XML layout is like this:
TOP_SEG
E1DP01
E1DP02
The segment E1DP01 is on the same level as TOP_SEG. It is not a child of TOP_SEG.
We tried the following code but is does not work:
set segHeader = theIDoc.Segments.Top
set SegCurrent = segHeader.NextSibling("E1EDP01")
for each SegCurrent in segHeader.NextTwin("E1EDP01")
set Werks = SegCurrent("WERKS")
next
The XML comes from a SAP system (IDOC ORDERS05) and we need to parse it.
Hope someone can help me.
Greetings,
Pascal.