dkrnl / SimpleXMLReader

Wrapped XMLReader class, for simple SAX-reading of huge xml.
112 stars 43 forks source link

Data missing #6

Closed applibs closed 7 years ago

applibs commented 7 years ago

Hi, I tested your code and see that $this->xml = $reader->expandSimpleXml(); delete some code. From this:

aaaaaaaaaaa

When I dump it I got in array only: 'CONTACT' => string 'aaaaaaaaaaa' (length=11) Where are attributes?

dkrnl commented 7 years ago

Hi, can you write full(working) code example?

applibs commented 7 years ago

It very simple: use this example: `<?xml version="1.0" encoding="UTF-8"?>

AAABBBCCC ` And check if you have parsed attributes and inner content.
dkrnl commented 7 years ago

Sorry, but this example not working code.

applibs commented 7 years ago

OK, create any own example where in identical node are attributes and content.

applibs commented 7 years ago

Did you closed it without test? Hmmm.

dkrnl commented 7 years ago

It very simple, write another issue with working code.