You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to achieve simple (I thought so) task. I have xml:
<title>
Hello <hlword>world</hlword>!
</title>
What I need is to convert this to string:
Hello world!
Or even better if I could do something like:
Hello **world**!
For second option for now I am even don`t know now hot to implement this in most handy way (mostly because I am new to elixir). But even the first option became unsolvable task for me, because when I am trying to perform
I get broken order of elements, something like world!Hello (can not tell exactly what order I will get in this situation, but usually this not even "reverse", but something absolutely random (but nested element is almost always going last)).
I don't know if it is sweet_xml's problem in breaking the order of gotten text() of nodes, but at least may be someone can help me in this task solving using this library.
The text was updated successfully, but these errors were encountered:
sintro
changed the title
Nested nodes order when taking text()
Broken nested nodes order when taking text()
Aug 15, 2017
I am trying to achieve simple (I thought so) task. I have xml:
What I need is to convert this to string:
Hello world!
Or even better if I could do something like:
Hello **world**!
For second option for now I am even don`t know now hot to implement this in most handy way (mostly because I am new to elixir). But even the first option became unsolvable task for me, because when I am trying to perform
I get broken order of elements, something like
world!Hello
(can not tell exactly what order I will get in this situation, but usually this not even "reverse", but something absolutely random (but nested element is almost always going last)).I don't know if it is sweet_xml's problem in breaking the order of gotten text() of nodes, but at least may be someone can help me in this task solving using this library.
The text was updated successfully, but these errors were encountered: