std.xml1 module won't parse nested
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
D Programming language Xml modules |
New
|
Undecided
|
Unassigned |
Bug Description
In an attempt to simplify my conversion to the newest changes I've selected to try std.xml1.
This file demonstraites that items are not paresed if inside another tag. Both asserts fail.
-------
import std.stdio;
import std.xml1;
string data = q"EOS
<?xml version="1.0"?>
<main>
<item alt="text"
<item alt="text"
</main>
EOS";
void main()
{
auto parser = new DocumentParser(
int innerHandle = 0;
auto handler = parser.new HandlerSet();
parser.
innerHandle++;
};
parser.
parser.
parser.parse(-1);
parser.
};
parser.parse();
parser.explode();
assert(
assert(innerHandle == 2);
}