Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » best way to parse XML/svg/html style kind attribute pairs?
best way to parse XML/svg/html style kind attribute pairs? [message #10769] Sat, 28 July 2007 02:55 Go to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
I'm tring to improve my upp_agg_svg.
Is there anything like:
p.GetAttr(i)

to get easily those kind of attribute pairs:
style="fill:none;fill-opacity:0.78431373;stroke:#000000;stroke-width:6.36111069;
stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;display:inline"

p[i] gives them all after =.
If not in XmlPrser then maybe somewhere else (Web?) ?
If not, would it be useful to have that kind of easy parsing functionality in Core and where?

[Updated on: Sat, 28 July 2007 02:57]

Report message to a moderator

Re: best way to parse XML/svg/html style kind attribute pairs? [message #10774 is a reply to message #10769] Sat, 28 July 2007 10:22 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
I would try to use CParser for the task.

Mirek
Re: best way to parse XML/svg/html style kind attribute pairs? [message #10835 is a reply to message #10774] Wed, 01 August 2007 12:59 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
luzr wrote on Sat, 28 July 2007 09:22

I would try to use CParser for the task.



Why, then, don't you use CParser in
void XmlParser::Next()
...

?
Re: best way to parse XML/svg/html style kind attribute pairs? [message #10853 is a reply to message #10835] Wed, 01 August 2007 17:55 Go to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
fudadmin wrote on Wed, 01 August 2007 06:59

luzr wrote on Sat, 28 July 2007 09:22

I would try to use CParser for the task.



Why, then, don't you use CParser in
void XmlParser::Next()
...

?



Because the content of attribute value is not XML defined.

Mirek
Previous Topic: Can I extend the Serialization to other types?
Next Topic: #ifdef PLATFORM_POSIX #include <bits/atomicity.h> for POSIX ?
Goto Forum:
  


Current Time: Sun Jun 15 19:28:22 CEST 2025

Total time taken to generate the page: 0.04225 seconds