Hello Jeff,

Wt does not include an XML parser in the public library API.
Internally, we use rapidxml (src/rapidxml).

A full XML parser is a big thing, we only needed a small part. But we
don't know if Wt users will want to use a full parser (xerces) or a
minimal one (such as rapidxml). Just pick one that works for you.

Best regards,
Wim.


2014-03-12 0:23 GMT+01:00 Jeffrey Scott Flesher Gmail
<jeffrey.scott.fles...@gmail.com>:
> I do not see any examples of it, beside one very confusing forum thread,
> with no full example code, I did not find anything else, I am mostly
> interested in XML.
>
> My guess would be that I would use:
>
> combo = new WComboBox(this);
> WStandardItemModel *si = new WStandardItemModel();
>
> and use QXmlStreamReader to read in the data, and attach it with:
>
> WStandardItem *i = new WStandardItem();
> i->setData(p1.key, UserRole);
> i->setText(p1.name);
> si->appendRow(i);
>
> combo->setModel(si);
>
> Found this at
> http://andres.jaimes.net/799/how-to-use-a-combobox-with-cwt-witty/
>
> I can work on this and get it to work with no problem, but I was wondering
> if there is an easier way, or if this is the way to do it.
>
> Do you have a Wt class to read XML?
> or is QXmlStreamReader just as easy and fast?
>
> Thanks
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to