XML library by Thomas Parslow

new topic     » topic index » view thread      » older message » newer message

I tried this code:

include print.e
include xml.e

object xml
xml = xml_Parse("<aaa>bbb</aaa>")
print(2, xml )

xml = xml_GetSubElement(xml, "aaa")
print(2, xml)


but the output is:

{{1,{"aaa",{},{{3,"bbb"}}}}}
C:\EUPHORIA\include\xml.e:321 in function xml_GetSubElement()
subscript value 2 is out of bounds, reading from a sequence of length 1
... called from xmlcoba.ex:9
--> see ex.err


Press Enter...


Am I right in using xml_GetSubElement?

Thanks!

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu