i need to parse a tei xml file with golang. i tried using the encoding/xml unmarshaller. here the example: http://ift.tt/18gDYAX
problems:
- even if is not a valid tei file, the xml is valid. but the example returns me nothing. if i remove line 23
<TEI>
(so xml is not anymore valid), the example prints something - how i can have into the Line struct a string containing the content of
<l>
element? - in the Page struct i need the value of
n
attribute. how?
is unmarshalling the right way to parse these kind of files? or nokogiri would be a better solution?
thanks
No comments:
Post a Comment