-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do you parse a subelement? #220
Labels
Comments
Hi @NickMcG, you could make use of an additional structural class for elements and make use of the attribute check this model here that contains an example of Element and Segment use in the same file (The example transmission file). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have some EDI that I'd like to parse that looks like this:
In other words,
358
,AD
, and20220608
are all subelements of the REF04 element. Is there a way for me to get at the data?I currently have REF defined as this:
When I parse and print out the data, I can see
REF*WS*CHBOH*0*QO
, but I can't get to the>358>AD>20220608
.Is there a way to get it to either drop the subelements into a property, or just eagerly grab everything? I'm perfectly fine parsing it after the majority of the EDI has been handled.
The text was updated successfully, but these errors were encountered: