Skip to content
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

Self closing tags are not recognized #1

Closed
timbo86 opened this issue Jun 3, 2022 · 3 comments · Fixed by #2
Closed

Self closing tags are not recognized #1

timbo86 opened this issue Jun 3, 2022 · 3 comments · Fixed by #2

Comments

@timbo86
Copy link

timbo86 commented Jun 3, 2022

A xml of
<fields> <field datatype="text" name="L101"/> <field datatype="text" name="L101_1"/> <field datatype="text" name="P102"/> <field datatype="text" name="P102_1"> <source></source> <param></param> </field> <field datatype="text" name="P103"></field> </fields>
returns only an array of two fields with name P102_1 and P103 when using findTagsByName(xml, 'field') or findTagsByPath(xml, 'field').
It should return an array of five elements, as self closing tag is a valid xml syntax.

@DanielJDufour
Copy link
Owner

I have a fix. Will merge soon.

@DanielJDufour
Copy link
Owner

fixed with #2.
will republish soon

@DanielJDufour
Copy link
Owner

new version 1.0.3 has been published. please try again and let me know if it doesn't work. thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants