Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^3: best xml parser to use

by rvosa (Curate)
on Jul 07, 2006 at 03:33 UTC ( #559710=note: print w/replies, xml ) Need Help??

in reply to Re^2: best xml parser to use
in thread best xml parser to use

What do you mean by "I don't actually know the format of xml"? How will switching parsers (though, technically, XML::Twig is a front-end, not a parser itself) fix that?

Replies are listed 'Best First'.
Re^4: best xml parser to use
by ftumsh (Scribe) on Jul 10, 2006 at 12:31 UTC
    XML Twig saves on memory by only reading in bits of the xml. To know what bits you are interested in you have to tell it. As I don't know what tags will be used for a given document I can't do that so it would load the entire xml into memory which negates the point of Twig.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://559710]
Tanktalus is trying to figure out how to get a case-insensitive match between stra▀e and strasse to return true in perl :( fc doesn't seem to do it, either, unless I'm doing it wrong.
[LanX]: ▀,ss
[LanX]: nope
[LanX]: /.*(?:▀|ss).*/
[hippo]: How are you doing the match? Regex, index, eq or something else?
[choroba]: fc $s1 eq fc $s2 I guess
[Tanktalus]: hippo: I don't care, I just want to prove it can match correctly compared to, say, ILIKE / UPPER / LOWER in postgres :)
[LanX]: is there a unicode convention that ▀ is ss ?
[Tanktalus]: LanX: yes :) I haven't tried java, but I have this match working in its bastard cousin, C# :) I just thought perl's unicode support would get me there :)
[LanX]: I have my doubts, IMHO its a workaround if the glyph is missing

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (13)
As of 2018-03-21 15:40 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (268 votes). Check out past polls.