XML/Input: Difference between revisions

m
imported>Regattaguru
m (→‎{{header|Wren}}: Minor tidy)
Line 3,921:
{{libheader|Wren-fmt}}
Wren doesn't currently have an XML parser though we don't really need one for this task as string pattern matching is sufficient to extract the student names.
<syntaxhighlight lang="ecmascriptwren">import "./pattern" for Pattern
import "./fmt" for Conv
 
var xml =
Line 3,967:
{{libheader|Wren-xsequence}}
Since the first version was written, the above XML parser has appeared and support for 'raw' strings has also been added to the language. Consequently, the solution can now be rewritten as follows, the output being the same as before.
<syntaxhighlight lang="ecmascriptwren">import "./xsequence" for XDocument
 
var xml = """
9,488

edits