[reSIProcate] Problem parsing the XML document using XMLCursor
Hi,
I have the problem in parsing XPIDF document.
Data contents("<?xml version=\"1.0\"?>
<foo1>
<foo2 uri=\"sip:172.16.25.17\" />
</foo1>");
XMLCursor tree (ParseBuffer (contents.data(),
contents.size()));
tree.getTag(); // foo1
tree.firstChild(); // foo2
cerr << Inserter(foo2.getAttributes()) << endl;
Here it aborts though there is attribute uri in foo2.
But if foo2 is written as
<foo2 uri=\"sip:172.16.25.17\" > </foo2>
It works fine. But I am not able to getAttributes if
the style is previous one.
Please correct me if am wrong.
How should I get Attributes if style is
<foo2 uri=\"sip:172.16.25.17\" /> ?
With regards
Somesh S. Shanbhag
-------------------------------
SIMPLICITY IS THE BEAUTY.
BE NATURAL LIVE NATURAL.
-------------------------------
Somesh S. Shanbhag
Mascon Global Communication Technologies
Enterprise of Mascon Global Limited
#59/2, 100Ft Ring Road
Banashankari II stage
Bangalore-560070
Karnataka
INDIA
Website: www.masconit.com
-------------------------------
__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/