Hi,
I'm trying to read an attribute from an empty tag (<tag attribute="...."
.../>)

This is my first try :
UnmarshallingContext ctx = (UnmarshallingContext) uctx;
ctx.attributeText(m_uri, "name", "");

But I get this error message :
only START_TAG can have attributes END_TAG seen....

So, I tried this code
UnmarshallingContext ctx = (UnmarshallingContext) uctx;
if (ctx.isStart()) {
            ctx.attributeText(m_uri, "name", "");
}

but Jibx doesn't read any attribute....

The first reading is made on the first unempty tag and the returned value is
the "name" of the child node ?!

Does anybody know how to solve this problem ?

Thanks
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to