Xo is experimental. The source is now public on GitHub, or try Xo in your browser.
Menu · XO0426

Docs

XO0426: a bad xml wire string

error · reported by the checker

An xml string is Go’s tag text: name, name,attr, ,chardata, a>b>c, ,omitempty, or -. attr takes a Str, Int, Float, or Bool (or an Option of one) and no path; chardata takes a Str. innerxml, comment, and any are not supported yet. See core 2.9.

Example

struct Item {
  id xml "ID,attr,bogus": Int
} derive Xml

Fix

struct Item {
  id xml "ID,attr": Int
} derive Xml

Run xo explain XO0426 for this text in a terminal, or see section 10.6 of the specification.