Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Simpler than XML::Simple

by grantm (Parson)
on Nov 22, 2010 at 21:16 UTC ( #873046=note: print w/replies, xml ) Need Help??


in reply to Re: Simpler than XML::Simple
in thread Simpler than XML::Simple

In the second case there are two parties which need to handle the XML data. In this case, you must have an XML schema

Heh, good luck with that it in the real world :-) My real-world experience led me to postulate the law of The "Perl end" of XML.

Replies are listed 'Best First'.
Re^3: Simpler than XML::Simple (OT)
by Your Mother (Chancellor) on Nov 22, 2010 at 21:31 UTC

    The [Perl side] inevitably has to bend over and take it.

    I'm furious with you, sir -- furious! -- for making so much pain seem so fscking funny.

      That's the price of being flexible.

Re^3: Simpler than XML::Simple
by Anonymous Monk on Sep 19, 2012 at 22:00 UTC
    Aw, dang it! The link "Perl End" gives an error page. Got update?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://873046]
help
Chatterbox?
[Corion]: choroba: I'm using that to generate the permutations, but I don't know how the user can pass the intended values to my function in a sane way
[Corion]: I have a prototype that permutes the get_parameters, but the values used for the get parameters should be different from the values used for the headers and potentially for parts of the URL
[Corion]: But yes, in general, my approach will be "split the URL into another set of parameters, generate an array of allowed values for each parameter and then NestedLoops() over the set"
[choroba]: hmm... so you need something like bag from Test::Deep, but not for checking, but for generation
[Corion]: This has the dual use of easily requesting sequential URLs and also being suitable for testing
[Corion]: For testing, I want to skip all tests with the same value(s) once one test fails to cut down on the number of failing tests
[Corion]: choroba: Yes, in a way I
[Corion]: ... I'm treating the incoming value sets as bags... Maybe I'll just put the burden on the user, at least in the first attempt at a full API. generate( headers => [{ 'Content-Type' => 'text/plain' }, {'Content-Type' => 'text/json' ] ), even ...
[Corion]: ... if that is cumbersome for the caller to specify. On the other hand, maybe there isn't that big a need for permuting the header values

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2017-01-17 08:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (152 votes). Check out past polls.