Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Good XML Libs for C++

Name: Anonymous 2009-05-27 19:52

Does anyone have any good XML libraries for C++ that they use, or have been recommended?

Name: Anonymous 2009-05-27 19:54

libperl + XML::Twig.  Everything else is pig disgusting.

Name: Anonymous 2009-05-27 20:02

>>2
We're dealing with XML. Pig disgusting is presupposed.
Or at least, we would be if >>1 weren't a transparent troll.

Name: Anonymous 2009-05-27 20:06

>>3
xml is not pig disugsting in dynamic languages such as ruby where the parser can create an instance of the classes and data in the language

Name: Anonymous 2009-05-27 20:11

>>4
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<enjoy>
  <this>
    <syntax disgusting="pig" />
  </this>
  <for>
    <every>
       <fucking>
          <thing />
       </fucking>
     </every>
   </for>
</enjoy>

Name: Anonymous 2009-05-27 20:16

The Forced Indentation of XML
http://slip.sourceforge.net/

Name: Anonymous 2009-05-27 20:19

>>6
oh shi...

Name: Anonymous 2009-05-27 20:23

use factor instead. it actually makes working with xml almost tolerable.

Name: Anonymous 2009-05-27 20:30

OP here, I've been tasked to write a currency converter in C++ using a generated XML page here: http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml

Don't know where to start other than asking for XML libs :(

Name: Anonymous 2009-05-27 20:37

>>9
Use C. It's a much nicer language and they won't know the difference.

Name: Anonymous 2009-05-27 20:40

>>10
Prof will when he reads my source code.. :(

Name: Anonymous 2009-05-27 22:08

>>11
Implying ``Prof'' will read source code, or even cares
IHBTV

Name: Anonymous 2009-05-27 22:08

>>11
If he knew his head from his ass he wouldn't ask you to use C++ for a task for which it's entirely unnedeeded and unsuited. Good thinking about the library though, some retards would just have mindlessly hobbled together their own buggy implementation of some subset of XML.

Name: Anonymous 2009-05-27 22:20

>>13
And it would have been the correct solution.

Name: Anonymous 2009-05-27 22:26

>>14
No it wouldn't, you retard.

Name: Anonymous 2009-05-27 22:52

>>15
Maybe not in a ``real world'' scenario, but when in an assignment, this is what the prof expects. I mean, look at >>9-san's post, it's the core of the application.

Name: Anonymous 2009-05-27 23:42

>>15
Yes it would, you retard.  He needs to scrape data from a particular document.  There's absolutely no reason to waste time implementing a generalized solution that can parse any valid XML representation when the application is going to require it to have the exact same logical structure anyway.

Name: Anonymous 2009-05-28 0:30

>>17
The extraction function goes from, what, a one liner to a three liner if you're using a clunky language or XML library, and it won't break when they change to a parser that quotes attributes with ' instead of ", or adds a space before the /> or whatever. How is that not a good tradeoff? Does it hurt that much to not get to wave your huge regexp dick around?

Name: Anonymous 2009-05-28 3:55

Name: Anonymous 2009-05-28 3:56

DON'T HELP HIM

Name: Anonymous 2009-05-28 7:06

OP again. It's not a marked assignment, my prof simply said  to try to create a live currency converter if we wanted something simple and real-world to do outside of class. He never said how to do it, I just figured that XML data is sitting there, so if I could scrape that page every time the user wants to convert, it'll be as 'live' as live can be, realistically.

I figured it's a good chance for me to learn how to load external libraries and stuff into C++ on my own.

Anyways, thanks for the discussion, the DOM creator on Xerces looks like it might do the trick. Failing that, I might be back :o

Name: Anonymous 2009-05-28 9:15

Failing that, I might be back :o
NO.
THIS IS NOT A FUCKING FRIENDLY HOMEWORK HELP FORUM.
GET THE FUCK OUT, RETARD.

Name: Anonymous 2009-05-28 9:26

Thanks /prog/rammers!
I told a few guys in my class that, save for a few assholes like >22, you were real helpful.
Do you people use Java too?

Name: Anonymous 2009-05-28 10:59

>>23
Yes, we are experts on all ENTERPRISE languages and technologies. Tune in tomorrow for our weekly knowledge-sharing session on AJAX best practices.

Name: Anonymous 2009-05-28 11:18

>>24
This would be rather nice. I was thinking of writing the next Google using only a popup of about 300x300 pixels and XMLHttpRequests to scrape the Web in real time after the user entered his search term.

Could really need some ENTERPRISE BEST PRACTICE TURN-KEY SOLUTIONS to help me getting started.

Name: Anonymous 2009-05-28 11:22

Don't know if trolling...

Name: Anonymous 2009-05-28 11:31

>>22
you know, the first time i came i /prog/ i made a thread about some newbie sepples problem and i got a very friendly, very polite answer.
i don't know, maybe i was reverse trolled

Name: >>19 2009-05-28 12:06

>>21
I've been helpful because once, I was as clueless as you.
I still consider you a border-line retard because you couldn't find this on Google.
http://www.google.pl/search?q=c%2B%2B+xml

Name: Anonymous 2009-05-28 12:25

>>27
I think it's probably how you word the question. I got some really good advice last year when I had some lisp questions.

Name: Anonymous 2009-05-28 15:46

>>26
You might want to learn about the /prog/ principle (it might surprise you, but I invented it):

``If, in a /prog/ thread,
  you're not sure who the troll is,
  it means YHBT.''

Name: Anonymous 2009-05-28 17:03

>>28
Thanks for being helpful. It's one thing to type shit into google, it's another thing to determine whether A) what you've typed in has any results you can work with, or B) whether you know enough to even determine A.
Instead of pissing around for a long while trying to figure out what to use and whether it was worth my time, I figured I'd come to a place where people might already have that sorted and then I could simply learn to use what I can presumably know as a good library. Again, thanks for being helpful :D

Name: Anonymous 2009-05-28 17:55

>>30
This might surprise you, but I invented faggot quotes.[1]

1 - http://dis.4chan.org/read/prog/1196688306

Name: Anonymous 2009-05-28 18:10

Some people, when confronted with a troll, think "I know, I'll reply with a well thought post pointing out the flaws in troll's argumentation". Now they have two problems.

Name: Anonymous 2009-05-28 18:28

>>33 (Score:4, Insightful)

Name: Anonymous 2009-05-28 20:03

>>33
FrozenVoid was one of those people.

Don't change these.
Name: Email:
Entire Thread Thread List