[NTG-context] Question about parsing XML and attributes (normally var.at.attrib) with a name with ':' in it

Gerben Wierda gerben.wierda at rna.nl
Sun Feb 14 22:40:58 CET 2021


If I have an XML element like this:

<A x=“one” attribute:B=“two"/>

and it has been read in a lua variable foo, I can get at attribute x with foo.at.x 

But how do I get at attribute:B?

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
R&A Enterprise Architecture <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210214/5669a69d/attachment.htm>


More information about the ntg-context mailing list