I know that you can have newlines inside your
XML attributes. But can you put each attribute on its own line?
In Sublime it shows up as a
non-closing tag. And when I try to parse it with something like jsdom it breaks there as well. I've tried googling this but haven't found a definitive answer yet. I can provide more info on the document if needed. I'm not super well versed in all the intricacies of XML so I may have left out pertinent information.
Yes, line-breaks within an XML element are absolutely fine.
Perhaps you are moving between Windows and Unix, and the difference in line-breaks is tripping up the parsers?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!Donate Us With