Closed capsulecorplab closed 4 months ago
Seems okay for inspecting list items containing an XMLElement
Reproducible with
|xmlString|
xmlString := '<?xml version="1.0" encoding="UTF-8"?>
<countries><country code="af" handle="afghanistan" continent="asia" iso="4">Afghanistan</country>
<country code="al" handle="albania" continent="europe" iso="8">Albania</country>
<country code="dz" handle="algeria" continent="africa" iso="12">Algeria</country>
</countries>'.
(XMLDOMParser parse: xmlString)
document root nodes
The parse returns XMLString nodes for the empty parts.
Reproducible with
|xmlString| xmlString := '<?xml version="1.0" encoding="UTF-8"?> <countries><country code="af" handle="afghanistan" continent="asia" iso="4">Afghanistan</country> <country code="al" handle="albania" continent="europe" iso="8">Albania</country> <country code="dz" handle="algeria" continent="africa" iso="12">Algeria</country> </countries>'. (XMLDOMParser parse: xmlString) document root nodes
The parse returns XMLString nodes for the empty parts.
Thanks @astares! The fix seems to be working for me too. Might be worth updating https://github.com/pharo-contributions/XML-XMLParser?tab=readme-ov-file#how-to-use to also say document root nodes
instead of document inspect
?
Yes, you can send a PR