Error (root tree delimiter with `<?xml ?>` tag)
levshx opened this issue · 0 comments
levshx commented
Not working
let content = """<?xml version="1.0" encoding="UTF-8"?><profile>
<steamID64>76561198859045421</steamID64>
</profile>"""
var d = q(content)
echo d.select("steamID64")Errors:
/home/levshx/.nimble/pkgs/xml-0.1.3/xml/selector.nim(60) q
/home/levshx/.nimble/pkgs/xml-0.1.3/xml.nim(254) parseXml
/home/levshx/.nimble/pkgs/xml-0.1.3/xml.nim(220) parseNode
/home/levshx/.choosenim/toolchains/nim-1.4.8/lib/system/assertions.nim(30) failedAssertImpl
/home/levshx/.choosenim/toolchains/nim-1.4.8/lib/system/assertions.nim(23) raiseAssert
/home/levshx/.choosenim/toolchains/nim-1.4.8/lib/system/fatal.nim(49) sysFatal
Error: unhandled exception: /home/levshx/.nimble/pkgs/xml-0.1.3/xml.nim(220, 10)tokens[start].kind == TAG_BEGIN[AssertionDefect]
Working (root tree have delimiter with <?xml ?> tag)
let content = """<?xml version="1.0" encoding="UTF-8"?> <profile>
<steamID64>76561198859045421</steamID64>
</profile>"""
var d = q(content)
echo d.select("steamID64")